From 6ac305a50804498b8c7ab00d23d2d4f3164b84fa Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 27 Aug 2021 14:52:43 +0200 Subject: Remove compiler warnings '-Wextra-semi' (see also PR #266) I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings. --- src/Fl_Native_File_Chooser_GTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Native_File_Chooser_GTK.cxx') diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index 10877741a..269405e48 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -109,10 +109,10 @@ private: pair(Fl_GTK_Native_File_Chooser_Driver* c, const char *f) { running = c; filter = fl_strdup(f); - }; + } ~pair() { free((char*)filter); - }; + } }; GtkWidget *gtkw_ptr; // used to hold a GtkWidget* without pulling GTK into everything... void *gtkw_slist; // used to hold a GLib GSList... -- cgit v1.2.3