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/windows | |
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/windows')
-rw-r--r-- | frontends/windows/download.c | 2 | ||||
-rw-r--r-- | frontends/windows/window.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontends/windows/download.c b/frontends/windows/download.c index 2b94e8363..cfd2bbbb7 100644 --- a/frontends/windows/download.c +++ b/frontends/windows/download.c @@ -169,7 +169,7 @@ nsws_download_event_callback(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case IDOK: if (download1->downloaded != download1->size) return TRUE; - /* Fall through */ + fallthrough; case IDCANCEL: nsws_download_clear_data(download1); diff --git a/frontends/windows/window.c b/frontends/windows/window.c index 10d16deaf..00e5a7e05 100644 --- a/frontends/windows/window.c +++ b/frontends/windows/window.c @@ -432,7 +432,7 @@ nsws_window_urlbar_callback(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) NSLOG(netsurf, INFO, "Destroyed font object"); DeleteObject(hFont); } - /* Fall through */ + fallthrough; case WM_NCDESTROY: /* remove properties if window is being destroyed */ |