From 52831955c759ecfa5d5f527bdf54f20545fdbcff Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 3 Aug 2017 09:05:00 +0200 Subject: 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. --- MetersPanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MetersPanel.c') 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 '+': -- cgit v1.2.3