diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
| commit | 6ac305a50804498b8c7ab00d23d2d4f3164b84fa (patch) | |
| tree | 9093bd58f0babd89ce55a45cee7e53d5029a1e14 /examples | |
| parent | 23c54e7a4b82fe325d74a181060535b60243208d (diff) | |
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.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/clipboard.cxx | 2 | ||||
| -rw-r--r-- | examples/shapedwindow.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/clipboard.cxx b/examples/clipboard.cxx index 4b4d921c6..e3aa322c1 100644 --- a/examples/clipboard.cxx +++ b/examples/clipboard.cxx @@ -69,7 +69,7 @@ public: class clipboard_viewer : public Fl_Tabs { // use tabs to display as appropriate the image or textual content of the clipboard public: - clipboard_viewer(int x, int y, int w, int h) : Fl_Tabs(x,y,w,h) {}; + clipboard_viewer(int x, int y, int w, int h) : Fl_Tabs(x,y,w,h) {} virtual int handle(int event) { if (event != FL_PASTE) return Fl_Tabs::handle(event); if (strcmp(Fl::event_clipboard_type(), Fl::clipboard_image) == 0) { // an image is being pasted diff --git a/examples/shapedwindow.cxx b/examples/shapedwindow.cxx index cf4b7048d..cbc80f212 100644 --- a/examples/shapedwindow.cxx +++ b/examples/shapedwindow.cxx @@ -32,7 +32,7 @@ void cb(Fl_Widget *w, void *) { class dragbox : public Fl_Box { public: - dragbox(int x, int y, int w, int h, const char *t=0) : Fl_Box(x,y,w,h,t) {}; + dragbox(int x, int y, int w, int h, const char *t=0) : Fl_Box(x,y,w,h,t) {} int handle(int event) { static int fromx, fromy, winx, winy; if (event == FL_PUSH) { |
