From 76858fc040052ec50a52d24dd247e970d37ee690 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser <albrechts.fltk@online.de> Date: Fri, 2 Sep 2022 16:28:53 +0200 Subject: [PATCH] Fix compiler warning [-Wunused-function] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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();