diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
| commit | 6ac305a50804498b8c7ab00d23d2d4f3164b84fa (patch) | |
| tree | 9093bd58f0babd89ce55a45cee7e53d5029a1e14 /src/drivers/PostScript | |
| parent | 23c54e7a4b82fe325d74a181060535b60243208d (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/PostScript')
| -rw-r--r-- | src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H b/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H index 84ac2e44c..4a0584036 100644 --- a/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H +++ b/src/drivers/PostScript/Fl_PostScript_Graphics_Driver.H @@ -51,8 +51,8 @@ public: Fl_PostScript_Graphics_Driver(); ~Fl_PostScript_Graphics_Driver(); - void close_command(Fl_PostScript_Close_Command cmd){close_cmd_=cmd;}; - FILE * file() {return output;}; + void close_command(Fl_PostScript_Close_Command cmd){close_cmd_=cmd;} + FILE * file() {return output;} void page(double pw, double ph, int media = 0); void page(int format); int start_postscript (int pagecount, enum Fl_Paged_Device::Page_Format format, enum Fl_Paged_Device::Page_Layout layout); @@ -112,7 +112,7 @@ public: int my; // mask lines int page_policy_; void page_policy(int p); - int page_policy(){return page_policy_;}; + int page_policy() { return page_policy_; } int alpha_mask(const uchar * data, int w, int h, int D, int LD=0); /** Shields output PostScript data from modifications of the current locale. It typically avoids PostScript errors caused if the current locale uses comma instead of dot @@ -154,11 +154,11 @@ public: enum Fl_Paged_Device::Page_Format page_format_; char *ps_filename_; - void close_command(Fl_PostScript_Close_Command cmd){close_cmd_=cmd;}; - FILE * file() {return output;}; + void close_command(Fl_PostScript_Close_Command cmd){close_cmd_=cmd;} + FILE * file() {return output;} //void orientation (int o); //Fl_PostScript_Graphics_Driver(FILE *o, int lang_level, int pages = 0); // ps (also multi-page) constructor - //void interpolate(int i){interpolate_=i;}; + //void interpolate(int i){interpolate_=i;} //int interpolate(){return interpolate_;} void page(double pw, double ph, int media = 0); @@ -211,9 +211,9 @@ 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(const uchar* d, int x,int y,int w,int h, int delta=3, int ldelta=0); @@ -221,8 +221,8 @@ public: 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 font(int face, int size); |
