* [Powertop] [PATCH] src/display.h: fix misleading-indentation warning
@ 2017-05-15 20:31 Joe Konno
0 siblings, 0 replies; only message in thread
From: Joe Konno @ 2017-05-15 20:31 UTC (permalink / raw)
To: powertop
[-- Attachment #1: Type: text/plain, Size: 968 bytes --]
From: Joe Konno <joe.konno(a)intel.com>
Because of how the code blocks are formatted, gcc 6 emits a "misleading
indentation" warning around the cursor_up() and cursor_down() virtual
methods.
Fix the warning by tweaking the code's indentation.
Signed-off-by: Joe Konno <joe.konno(a)intel.com>
---
src/display.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/display.h b/src/display.h
index 9af3ec0b6e72..9db87ec85464 100644
--- a/src/display.h
+++ b/src/display.h
@@ -62,10 +62,14 @@ public:
}
virtual void cursor_down(void) {
- if (cursor_pos < cursor_max ) cursor_pos++; repaint();
+ if (cursor_pos < cursor_max)
+ cursor_pos++;
+ repaint();
} ;
virtual void cursor_up(void) {
- if (cursor_pos > 0) cursor_pos--; repaint();
+ if (cursor_pos > 0)
+ cursor_pos--;
+ repaint();
};
virtual void cursor_left(void) { };
virtual void cursor_right(void) { };
--
2.13.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-15 20:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 20:31 [Powertop] [PATCH] src/display.h: fix misleading-indentation warning Joe Konno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).