summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-09-02 16:28:53 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-09-02 16:28:53 +0200
commit76858fc040052ec50a52d24dd247e970d37ee690 (patch)
tree831016a0a3fa57e3f8d2fa0675646dd32400ea53
parent16f660f676027a54d08e2bf9fd3cd0e6fe3d5ee0 (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.
-rw-r--r--src/Fl_x.cxx2
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();