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.
This commit is contained in:
Albrecht Schlosser 2022-09-02 16:28:53 +02:00
parent 16f660f676
commit 76858fc040

View File

@ -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();