diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-09-02 16:28:53 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-09-02 16:28:53 +0200 |
| commit | 76858fc040052ec50a52d24dd247e970d37ee690 (patch) | |
| tree | 831016a0a3fa57e3f8d2fa0675646dd32400ea53 /src | |
| parent | 16f660f676027a54d08e2bf9fd3cd0e6fe3d5ee0 (diff) | |
Fix compiler warning [-Wunused-function]
warning: ‘int xrender_supported()’ defined but not used
This happens only with certain configure options, particularly if
FLTK_USE_CAIRO is set, i.e. drawing with Cairo is enabled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index bc2a534cd..1a30e80b7 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2217,7 +2217,7 @@ int Fl_X11_Screen_Driver::ewmh_supported() { return result; } -#if HAVE_XRENDER +#if HAVE_XRENDER && (!FLTK_USE_CAIRO) static int xrender_supported() { int nop1, nop2; fl_open_display(); |
