diff options
author | Christian Hesse <mail@eworm.de> | 2017-08-03 09:05:00 +0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-10-23 14:27:33 -0400 |
commit | 52831955c759ecfa5d5f527bdf54f20545fdbcff (patch) | |
tree | 405c181efb62b6304b7c2343e54116abf25ff366 | |
parent | ef34a83c54e17c54e137d1fe6272f71d9b86857e (diff) |
fix fallthough comments for GCC 7.x
GCC 7.x does some extended checks on fallthough for switch/case
statement. The warning looks like this:
warning: this statement may fall through [-Wimplicit-fallthrough=]
It can be told about implicit fallthough, however it does not
recognize comments within blocks, so move the comments outside.
-rw-r--r-- | ColumnsPanel.c | 4 | ||||
-rw-r--r-- | MetersPanel.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ColumnsPanel.c b/ColumnsPanel.c index 02d8be13..8974ffdc 100644 --- a/ColumnsPanel.c +++ b/ColumnsPanel.c @@ -65,8 +65,8 @@ static HandlerResult ColumnsPanel_eventHandler(Panel* super, int ch) { if (!this->moving) { break; } - /* else fallthrough */ } + /* else fallthrough */ case KEY_F(7): case '[': case '-': @@ -81,8 +81,8 @@ static HandlerResult ColumnsPanel_eventHandler(Panel* super, int ch) { if (!this->moving) { break; } - /* else fallthrough */ } + /* else fallthrough */ case KEY_F(8): case ']': case '+': diff --git a/MetersPanel.c b/MetersPanel.c index 47833d38..3cf3e075 100644 --- a/MetersPanel.c +++ b/MetersPanel.c @@ -128,8 +128,8 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) { if (!this->moving) { break; } - /* else fallthrough */ } + /* else fallthrough */ case KEY_F(7): case '[': case '-': @@ -144,8 +144,8 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) { if (!this->moving) { break; } - /* else fallthrough */ } + /* else fallthrough */ case KEY_F(8): case ']': case '+': |