summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-10-23 09:46:02 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-10-23 09:46:02 +0100
commite418416c77e1ec00d987d788662a5b17648258a8 (patch)
tree43db80b7d13e99c7915b7a3087797d0b9885bf02
parent9925762de85a2283e64af020e169189d61932480 (diff)
downloadnetsurf-e418416c77e1ec00d987d788662a5b17648258a8.tar.gz
netsurf-e418416c77e1ec00d987d788662a5b17648258a8.tar.bz2
Squash remaining GCC7 -Wimplicit-fallthrough warnings.
-rw-r--r--content/llcache.c4
-rw-r--r--frontends/gtk/download.c2
-rw-r--r--render/html_interaction.c1
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 */