Fix compiler warnings [-Wpedantic]

Remove extra semicolons after function definitions
This commit is contained in:
Albrecht Schlosser 2023-04-13 20:27:00 +02:00
parent 7b2c770ef7
commit 4bc63da34d
5 changed files with 7 additions and 7 deletions

View File

@ -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()

View File

@ -56,7 +56,7 @@ Fl_Graphics_Driver::Fl_Graphics_Driver()
xpoint = NULL;
what = NONE;
n = 0;
};
}
/** Destructor */
Fl_Graphics_Driver::~Fl_Graphics_Driver() {

View File

@ -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)

View File

@ -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)

View File

@ -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);
};
}