|
|
commit 76858fc040052ec50a52d24dd247e970d37ee690
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Fri Sep 2 16:28:53 2022 +0200
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Fri Sep 2 16:28:53 2022 +0200
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.
src/Fl_x.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/Fl_x.cxx src/Fl_x.cxx
index bc2a534..1a30e80 100644
--- src/Fl_x.cxx
+++ 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();
[ Direct Link to Message ] | |
|
| |