FLTK logo

[master] cce652f - Fix compiler warning on macOS

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] cce652f - Fix compiler warning on macOS "Albrecht Schlosser" May 03, 2021  
commit cce652f58c658703d007eec241957acdb45e6c5c
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon May 3 21:42:00 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon May 3 21:42:00 2021 +0200

    Fix compiler warning on macOS
    Compiling drivers/Posix/Fl_Posix_System_Driver.cxx...
    drivers/Posix/Fl_Posix_System_Driver.cxx:176:14: warning: unused function 'quadruple_dlopen' [-Wunused-function]

 src/drivers/Posix/Fl_Posix_System_Driver.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git src/drivers/Posix/Fl_Posix_System_Driver.cxx src/drivers/Posix/Fl_Posix_System_Driver.cxx
index 4a8ccda..68ae758 100644
--- src/drivers/Posix/Fl_Posix_System_Driver.cxx
+++ src/drivers/Posix/Fl_Posix_System_Driver.cxx
@@ -172,7 +172,8 @@ int Fl_Posix_System_Driver::run_program(const char *program, char **argv, char *
+#if HAVE_DLSYM && HAVE_DLFCN_H && !defined (__APPLE_CC__)
 static void* quadruple_dlopen(const char *libname)
   char filename2[FL_PATH_MAX];
@@ -272,7 +273,7 @@ bool Fl_Posix_System_Driver::probe_for_GTK(int major, int minor, void **p_ptr_gt
     init_f = (init_t)dlsym(Fl_Posix_System_Driver::ptr_gtk, "gtk_init_check");
     if (!init_f) return false;
   *p_ptr_gtk = Fl_Posix_System_Driver::ptr_gtk;
   // The point here is that after running gtk_init_check, the calling program's current locale can be modified.
   // To avoid that, we memorize the calling program's current locale and restore the locale
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'.