summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2024-03-13 21:36:06 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2024-03-13 21:36:06 +0000
commit4148b16ed43220b3a2b28a1516be5506592f42f5 (patch)
tree7e71134be07f6be0e4e290ac3431845f846880d9
parent3be91870a4d9094ef2955a10a05cb5674ea2f387 (diff)
downloadnetsurf-4148b16ed43220b3a2b28a1516be5506592f42f5.tar.gz
netsurf-4148b16ed43220b3a2b28a1516be5506592f42f5.tar.bz2
RISC OS: use modern fallthrough mechanism
-rw-r--r--frontends/riscos/configure/con_image.c3
-rw-r--r--frontends/riscos/save.c2
-rw-r--r--frontends/riscos/textarea.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/frontends/riscos/configure/con_image.c b/frontends/riscos/configure/con_image.c
index 86e6b8f6f..d81dc5c3b 100644
--- a/frontends/riscos/configure/con_image.c
+++ b/frontends/riscos/configure/con_image.c
@@ -23,6 +23,7 @@
#include "utils/nsoption.h"
#include "utils/log.h"
+#include "utils/utils.h"
#include "riscos/gui.h"
#include "riscos/configure/configure.h"
@@ -209,7 +210,7 @@ bool ro_gui_options_image_click(wimp_pointer *pointer)
data.indirected_text.text, true);
ro_gui_set_icon_selected_state(pointer->w,
IMAGE_DISABLE_ANIMATION, false);
- /* fall through */
+ fallthrough;
case IMAGE_DISABLE_ANIMATION:
ro_gui_options_update_shading(pointer->w);
break;
diff --git a/frontends/riscos/save.c b/frontends/riscos/save.c
index e6b43f1a3..b435787b0 100644
--- a/frontends/riscos/save.c
+++ b/frontends/riscos/save.c
@@ -1020,7 +1020,7 @@ ro_gui_save_content(struct hlcache_handle *h, char *path, bool force_overwrite)
}
else
gui_save_current_type = GUI_SAVE_OBJECT_ORIG; /** \todo do this earlier? */
- /* fall through */
+ fallthrough;
case GUI_SAVE_SOURCE:
case GUI_SAVE_OBJECT_ORIG:
source_data = content_get_source_data(h, &source_size);
diff --git a/frontends/riscos/textarea.c b/frontends/riscos/textarea.c
index 6f41c640b..69b7eede1 100644
--- a/frontends/riscos/textarea.c
+++ b/frontends/riscos/textarea.c
@@ -33,6 +33,7 @@
#include "utils/log.h"
#include "utils/utf8.h"
+#include "utils/utils.h"
#include "riscos/gui.h"
#include "riscos/oslib_pre7.h"
@@ -1023,7 +1024,7 @@ bool ro_textarea_key_press(wimp_key *key)
break;
}
- /* fall through */
+ fallthrough;
case wimp_KEY_ESCAPE:
keypress = *key;
keypress.w = ta->parent;