summaryrefslogtreecommitdiff
path: root/fluid/app
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-04-15 14:38:37 +0200
committerMatthias Melcher <github@matthiasm.com>2025-04-15 14:38:45 +0200
commit63db80c07888e5f4dcaff3579a0d174b7df5424d (patch)
tree18c2cc13b90efe6c404dc9de9fa09b5bce1c464c /fluid/app
parent76e76ba80a10bc547eff9ffb0988337193fdf534 (diff)
Fluid: avoid bad function pointer casting warning in Clang 17.
Diffstat (limited to 'fluid/app')
-rw-r--r--fluid/app/Menu.h2
-rw-r--r--fluid/app/Snap_Action.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/fluid/app/Menu.h b/fluid/app/Menu.h
index 43f5d7e6f..065929c04 100644
--- a/fluid/app/Menu.h
+++ b/fluid/app/Menu.h
@@ -23,7 +23,7 @@ extern void exit_cb(class Fl_Widget *,void *); // TODO: remove this
extern void toggle_widgetbin_cb(Fl_Widget *, void *);
extern void menu_file_save_cb(Fl_Widget *, void *arg);
extern void menu_file_open_history_cb(Fl_Widget *, void *v);
-extern void align_widget_cb(Fl_Widget *, long);
+extern void align_widget_cb(Fl_Widget *, void*);
#endif // FLUID_APP_MENU_H
diff --git a/fluid/app/Snap_Action.cxx b/fluid/app/Snap_Action.cxx
index f33054eca..d67e074cb 100644
--- a/fluid/app/Snap_Action.cxx
+++ b/fluid/app/Snap_Action.cxx
@@ -140,11 +140,11 @@ void select_layout_preset_cb(Fl_Widget *, void *user_data) {
Fluid.layout_list.update_dialogs();
}
-void edit_layout_preset_cb(Fl_Button *w, long user_data) {
+void edit_layout_preset_cb(Fl_Button *w, void *user_data) {
int index = (int)w->argument();
assert(index >= 0);
assert(index < 3);
- if (user_data == (long)(fl_intptr_t)LOAD) {
+ if (user_data == LOAD) {
w->value(Fluid.layout_list.current_preset() == index);
} else {
Fluid.layout_list.current_preset(index);