From 4bc63da34dd9b0b8bf84d5a5fadb6780a2baf1b8 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 13 Apr 2023 20:27:00 +0200 Subject: Fix compiler warnings [-Wpedantic] Remove extra semicolons after function definitions --- src/Fl_Device.cxx | 4 ++-- src/Fl_Graphics_Driver.cxx | 2 +- src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | 2 +- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- src/fl_cursor.cxx | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index a6f9173a7..bfd9db063 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -101,14 +101,14 @@ Fl_Surface_Device::~Fl_Surface_Device() /** A constructor that sets the graphics driver used by the display */ Fl_Display_Device::Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_Surface_Device(graphics_driver) { this->set_current(); -}; +} /** Returns a pointer to the unique display device */ Fl_Display_Device *Fl_Display_Device::display_device() { static Fl_Display_Device *display = new Fl_Display_Device(Fl_Graphics_Driver::newMainGraphicsDriver()); return display; -}; +} Fl_Surface_Device *Fl_Surface_Device::default_surface() diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 35697c256..121501d1f 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -56,7 +56,7 @@ Fl_Graphics_Driver::Fl_Graphics_Driver() xpoint = NULL; what = NONE; n = 0; -}; +} /** Destructor */ Fl_Graphics_Driver::~Fl_Graphics_Driver() { diff --git a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx index 007408a15..40ba0c89d 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx @@ -20,7 +20,7 @@ Fl_OpenGL_Display_Device *Fl_OpenGL_Display_Device::display_device() { static Fl_OpenGL_Display_Device *display = new Fl_OpenGL_Display_Device(new Fl_OpenGL_Graphics_Driver()); return display; -}; +} Fl_OpenGL_Display_Device::Fl_OpenGL_Display_Device(Fl_OpenGL_Graphics_Driver *graphics_driver) : Fl_Surface_Device(graphics_driver) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 6938e2996..b327f7bc2 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -128,7 +128,7 @@ Fl_Wayland_Screen_Driver::compositor_name Fl_Wayland_Screen_Driver::compositor = extern "C" { bool fl_libdecor_using_weston(void) { return Fl_Wayland_Screen_Driver::compositor == Fl_Wayland_Screen_Driver::WESTON; - }; + } } static void xdg_wm_base_ping(void *data, struct xdg_wm_base *xdg_wm_base, uint32_t serial) diff --git a/src/fl_cursor.cxx b/src/fl_cursor.cxx index 681a98255..76283182d 100644 --- a/src/fl_cursor.cxx +++ b/src/fl_cursor.cxx @@ -195,7 +195,7 @@ void Fl_Window::cursor(const Fl_RGB_Image *image, int hotx, int hoty) { */ void Fl_Window::cursor(Fl_Cursor c, Fl_Color, Fl_Color) { cursor(c); -}; +} /** For back compatibility only. @@ -203,4 +203,4 @@ void Fl_Window::cursor(Fl_Cursor c, Fl_Color, Fl_Color) { */ void Fl_Window::default_cursor(Fl_Cursor c, Fl_Color, Fl_Color) { default_cursor(c); -}; +} -- cgit v1.2.3