summaryrefslogtreecommitdiff
path: root/src/drivers/Cairo
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 /src/drivers/Cairo
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 'src/drivers/Cairo')
-rw-r--r--src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
index 09a5d67a5..aff73c4f2 100644
--- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
+++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
@@ -48,7 +48,7 @@ public:
int gap_;
int pages_;
cairo_t *cr() { return cairo_; }
- PangoLayout *pango_layout() {return pango_layout_;};
+ PangoLayout *pango_layout() {return pango_layout_;}
void check_status(void);
@@ -117,17 +117,17 @@ public:
void end_line();
void end_loop();
void end_polygon();
- void begin_complex_polygon(){begin_polygon();};
- void gap(){gap_=1;};
- void end_complex_polygon(){end_polygon();};
+ void begin_complex_polygon() { begin_polygon(); }
+ void gap() { gap_ = 1; }
+ void end_complex_polygon() { end_polygon(); }
void transformed_vertex(double x, double y);
void draw_image_mono(const uchar* d, int x,int y,int w,int h, int delta=1, int ld=0);
void draw_image(Fl_Draw_Image_Cb call, void* data, int x,int y, int w, int h, int delta=3);
void draw_image_mono(Fl_Draw_Image_Cb call, void* data, int x,int y, int w, int h, int delta=1);
- void draw(const char* s, int nBytes, int x, int y) {transformed_draw(s,nBytes,x,y); };
- void draw(const char* s, int nBytes, float x, float y) {transformed_draw(s,nBytes,x,y); };
+ void draw(const char* s, int nBytes, int x, int y) { transformed_draw(s,nBytes,x,y); }
+ void draw(const char* s, int nBytes, float x, float y) { transformed_draw(s,nBytes,x,y); }
void draw(int angle, const char *str, int n, int x, int y);
void rtl_draw(const char* s, int n, int x, int y);
void draw_pixmap(Fl_Pixmap * pxm,int XP, int YP, int WP, int HP, int cx, int cy);