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. --- ColumnsPanel.c | 4 ++-- MetersPanel.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ColumnsPanel.c b/ColumnsPanel.c index 02d8be1..8974ffd 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 47833d3..3cf3e07 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