From ca028872e7a33376576eb5b039e7eafedaad90e9 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 16 Dec 2023 14:07:03 +0100 Subject: [PATCH] #868: Suppress warning about unused private members of Fl_Shortcut_Button --- src/Fl_Shortcut_Button.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Fl_Shortcut_Button.cxx b/src/Fl_Shortcut_Button.cxx index a9002d30f..9f19fa0b4 100644 --- a/src/Fl_Shortcut_Button.cxx +++ b/src/Fl_Shortcut_Button.cxx @@ -55,6 +55,11 @@ Fl_Shortcut_Button::Fl_Shortcut_Button(int X,int Y,int W,int H, const char* l) box(FL_DOWN_BOX); selection_color(FL_SELECTION_COLOR); type(FL_TOGGLE_BUTTON); + // suppress warning on unused private members. I keep these around in case + // we decide to activate this API again without changing the ABI. + (void)default_shortcut_; + (void)default_set_; + } /**