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. --- FL/Fl_File_Browser.H | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'FL/Fl_File_Browser.H') diff --git a/FL/Fl_File_Browser.H b/FL/Fl_File_Browser.H index 40d328093..8ea51b2ad 100644 --- a/FL/Fl_File_Browser.H +++ b/FL/Fl_File_Browser.H @@ -55,9 +55,9 @@ public: ~Fl_File_Browser(); /** Sets or gets the size of the icons. The default size is 20 pixels. */ - uchar iconsize() const { return (iconsize_); }; + uchar iconsize() const { return (iconsize_); } /** Sets or gets the size of the icons. The default size is 20 pixels. */ - void iconsize(uchar s) { iconsize_ = s; redraw(); }; + void iconsize(uchar s) { iconsize_ = s; redraw(); } /** Sets or gets the filename filter. The pattern matching uses @@ -70,10 +70,10 @@ public: the fl_filename_match() function in FLTK. */ - const char *filter() const { return (pattern_); }; + const char *filter() const { return (pattern_); } int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort); - Fl_Fontsize textsize() const { return Fl_Browser::textsize(); }; - void textsize(Fl_Fontsize s) { Fl_Browser::textsize(s); iconsize_ = (uchar)(3 * s / 2); }; + Fl_Fontsize textsize() const { return Fl_Browser::textsize(); } + void textsize(Fl_Fontsize s) { Fl_Browser::textsize(s); iconsize_ = (uchar)(3 * s / 2); } /** Sets or gets the file browser type, FILES or @@ -81,14 +81,14 @@ public: files and directories are shown. Otherwise only directories are shown. */ - int filetype() const { return (filetype_); }; + int filetype() const { return (filetype_); } /** Sets or gets the file browser type, FILES or DIRECTORIES. When set to FILES, both files and directories are shown. Otherwise only directories are shown. */ - void filetype(int t) { filetype_ = t; }; + void filetype(int t) { filetype_ = t; } void errmsg(const char *emsg); /** Returns OS error messages, or NULL if none. Use when advised. -- cgit v1.2.3