diff options
author | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 08:29:15 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 21:33:13 +0000 |
commit | b5f4d905f958ebfce9be2ab8daa5d42b62f7277d (patch) | |
tree | 2d2b35635858274945de6ac503221877c9ceae21 /frontends/gtk/download.c | |
parent | 199f86dcf10bc62b9428f012381e32728bff3014 (diff) | |
download | netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.gz netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.bz2 |
use attributes to indicate switch fall through instead of comments
Diffstat (limited to 'frontends/gtk/download.c')
-rw-r--r-- | frontends/gtk/download.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/gtk/download.c b/frontends/gtk/download.c index 63ca1c267..d1231634d 100644 --- a/frontends/gtk/download.c +++ b/frontends/gtk/download.c @@ -432,7 +432,7 @@ static gboolean nsgtk_download_update(gboolean force_update) switch (dl->status) { case NSGTK_DOWNLOAD_WORKING: pulse_mode = TRUE; - /* Fall through */ + fallthrough; case NSGTK_DOWNLOAD_NONE: dl->speed = dl->size_downloaded / @@ -449,12 +449,13 @@ static gboolean nsgtk_download_update(gboolean force_update) dl_ctx.num_active++; update = TRUE; - /* Fall through */ + fallthrough; case NSGTK_DOWNLOAD_COMPLETE: downloaded += dl->size_downloaded; total += dl->size_total; dls++; + fallthrough; default: ;//Do nothing |