FLTK logo

[master] 418699f - Fix two compiler warnings [-Wunused-variable]

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] 418699f - Fix two compiler warnings [-Wunused-variable] "Albrecht Schlosser" Aug 30, 2021  
 
commit 418699fceac327f8f443d1dbf9e9404e23ea0451
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Aug 30 14:28:35 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Aug 30 14:28:35 2021 +0200

    Fix two compiler warnings [-Wunused-variable]

 examples/fluid-callback.fl | 3 ++-
 src/scandir_win32.c        | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git examples/fluid-callback.fl examples/fluid-callback.fl
index 42ce474..ac993fb 100644
--- examples/fluid-callback.fl
+++ examples/fluid-callback.fl
@@ -81,5 +81,6 @@ delete this;} {}
 Function {} {open return_type int
 } {
   code {// Main program
-App *app = new App(300, 100, "Virtual Callback Test");} {}
+App(300, 100, "Virtual Callback Test");} {selected
+  }
 }
diff --git src/scandir_win32.c src/scandir_win32.c
index 2210f7b..2573fa3 100644
--- src/scandir_win32.c
+++ src/scandir_win32.c
@@ -48,7 +48,7 @@ static void get_ms_errmsg(char *errmsg, int errmsg_sz) {
     fl_snprintf(errmsg, errmsg_sz, "Error #%lu", (unsigned long)lastErr);
   } else {
     /* convert message to UTF-8 */
-    int mlen = fl_utf8fromwc(errmsg, errmsg_sz, mbuf, msize);
+    fl_utf8fromwc(errmsg, errmsg_sz, mbuf, msize);
     /* Remove '\r's -- they screw up fl_alert()) */
     char *src = errmsg, *dst = errmsg;
     for ( ; 1; src++ ) {
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'.