From e418416c77e1ec00d987d788662a5b17648258a8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 23 Oct 2017 09:46:02 +0100 Subject: Squash remaining GCC7 -Wimplicit-fallthrough warnings. --- content/llcache.c | 4 +--- frontends/gtk/download.c | 2 ++ render/html_interaction.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/content/llcache.c b/content/llcache.c index d48a31b9b..0c6f3a93b 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -2698,9 +2698,7 @@ static void llcache_fetch_callback(const fetch_msg *msg, void *p) error = llcache_object_refetch(object); break; } - /* Otherwise fall through to error, setting the message to - * a timeout - */ + /* Fall through */ case FETCH_ERROR: /* An error occurred while fetching */ /* The fetch has has already been cleaned up by the fetcher */ diff --git a/frontends/gtk/download.c b/frontends/gtk/download.c index 576960271..d11036ea8 100644 --- a/frontends/gtk/download.c +++ b/frontends/gtk/download.c @@ -331,6 +331,7 @@ static gboolean nsgtk_download_update(gboolean force_update) switch (dl->status) { case NSGTK_DOWNLOAD_WORKING: pulse_mode = TRUE; + /* Fall through */ case NSGTK_DOWNLOAD_NONE: dl->speed = dl->size_downloaded / @@ -347,6 +348,7 @@ static gboolean nsgtk_download_update(gboolean force_update) nsgtk_downloads_num_active++; update = TRUE; + /* Fall through */ case NSGTK_DOWNLOAD_COMPLETE: downloaded += dl->size_downloaded; diff --git a/render/html_interaction.c b/render/html_interaction.c index 0ff69b5b3..30adaa080 100644 --- a/render/html_interaction.c +++ b/render/html_interaction.c @@ -697,6 +697,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw, form_radio_set(gadget); break; case GADGET_IMAGE: + /* This falls through to SUBMIT */ if (mouse & BROWSER_MOUSE_CLICK_1) { struct image_input_coords *coords, *oldcoords; /** \todo Find a way to not ignore errors */ -- cgit v1.2.3