From 63db80c07888e5f4dcaff3579a0d174b7df5424d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 15 Apr 2025 14:38:37 +0200 Subject: Fluid: avoid bad function pointer casting warning in Clang 17. --- fluid/app/Menu.h | 2 +- fluid/app/Snap_Action.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid/app') 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); -- cgit v1.2.3