FLTK logo

[master] 76858fc - Fix compiler warning [-Wunused-function]

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 76858fc - Fix compiler warning [-Wunused-function] "Albrecht Schlosser" Sep 02, 2022  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.