From: Max Kellermann Date: Fri, 10 Mar 2017 20:41:02 +0000 (+0100) Subject: screen_{find,search}: work around gcc7 -Wimplicit-fallthrough X-Git-Tag: v0.26~74 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=855877ffd473227827563c327763175dd463474b;p=ncmpc.git screen_{find,search}: work around gcc7 -Wimplicit-fallthrough --- diff --git a/NEWS b/NEWS index e758972..a4c5075 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ncmpc 0.26 - not yet released * require libmpdclient 2.9 * adapt to lirc 0.9.4 * lyricswiki: update regex +* fix gcc 7 warnings ncmpc 0.25 - (2016-08-18) * implement "%disc%" diff --git a/src/screen_find.c b/src/screen_find.c index f131af7..a08140c 100644 --- a/src/screen_find.c +++ b/src/screen_find.c @@ -49,8 +49,8 @@ screen_find(struct list_window *lw, command_t findcmd, if (screen.findbuf) { g_free(screen.findbuf); screen.findbuf=NULL; - } - /* continue... */ + } + /* fall through */ case CMD_LIST_FIND_NEXT: case CMD_LIST_RFIND_NEXT: diff --git a/src/screen_search.c b/src/screen_search.c index deab64a..df451d1 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -441,7 +441,7 @@ screen_search_cmd(struct mpdclient *c, command_t cmd) options.search_mode = 0; screen_status_printf(_("Search mode: %s"), _(mode[options.search_mode].label)); - /* continue and update... */ + /* fall through */ case CMD_SCREEN_UPDATE: screen_search_reload(c); search_repaint();