Code

screen_{find,search}: work around gcc7 -Wimplicit-fallthrough
authorMax Kellermann <max.kellermann@gmail.com>
Fri, 10 Mar 2017 20:41:02 +0000 (21:41 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Fri, 10 Mar 2017 20:41:02 +0000 (21:41 +0100)
NEWS
src/screen_find.c
src/screen_search.c

diff --git a/NEWS b/NEWS
index e758972b4710fb31555b0ff476290d9452b16829..a4c5075057e3e5d833092bdfaa4dd7fcdc9644f0 100644 (file)
--- 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%"
index f131af72d482e0d52114c1b5c34b26b02f4839e8..a08140c670907fcc5fa88e14ec6d0e92a7c6012f 100644 (file)
@@ -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:
index deab64ab05ba96bc5ea35e181834724f646fd2a9..df451d104f95e5f039622b7fb491032a178d440e 100644 (file)
@@ -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();