summaryrefslogtreecommitdiff
path: root/FL/Fl_Device.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 14:52:43 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 14:52:43 +0200
commit6ac305a50804498b8c7ab00d23d2d4f3164b84fa (patch)
tree9093bd58f0babd89ce55a45cee7e53d5029a1e14 /FL/Fl_Device.H
parent23c54e7a4b82fe325d74a181060535b60243208d (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 'FL/Fl_Device.H')
-rw-r--r--FL/Fl_Device.H6
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H
index 9615bdc44..58f391c8d 100644
--- a/FL/Fl_Device.H
+++ b/FL/Fl_Device.H
@@ -73,19 +73,19 @@ protected:
/** Constructor that sets the graphics driver to use for the created surface. */
Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; }
/** Sets the graphics driver of this drawing surface. */
- inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;};
+ inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;}
public:
virtual void set_current(void);
virtual bool is_current();
/** \brief Returns the graphics driver of this drawing surface. */
- inline Fl_Graphics_Driver *driver() {return pGraphicsDriver; };
+ inline Fl_Graphics_Driver *driver() {return pGraphicsDriver; }
/** The current drawing surface.
In other words, the Fl_Surface_Device object that currently receives all graphics requests.
\note It's possible to transiently remove the GUI scaling factor in place in the current
drawing surface with \ref fl_override_scale(). */
static inline Fl_Surface_Device *surface() {
return surface_ ? surface_ : default_surface();
- };
+ }
/** \brief The destructor. */
virtual ~Fl_Surface_Device();
static void push_current(Fl_Surface_Device *new_current);