mirror of https://github.com/fltk/fltk
Fix compiler warnings [-Wpedantic]
Remove extra semicolons after function definitions
This commit is contained in:
parent
7b2c770ef7
commit
4bc63da34d
|
@ -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()
|
||||
|
|
|
@ -56,7 +56,7 @@ Fl_Graphics_Driver::Fl_Graphics_Driver()
|
|||
xpoint = NULL;
|
||||
what = NONE;
|
||||
n = 0;
|
||||
};
|
||||
}
|
||||
|
||||
/** Destructor */
|
||||
Fl_Graphics_Driver::~Fl_Graphics_Driver() {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue