[master] 3c84894 - Windows: Fix compiler warning: unused variable

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] 3c84894 - Windows: Fix compiler warning: unused variable "Albrecht Schlosser" 05:32 May 31 top right image
 
commit 3c84894f19650703e8fa30d0d5eb87100a6fc4a4
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon May 31 14:20:08 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon May 31 14:20:08 2021 +0200

    Windows: Fix compiler warning: unused variable

 fluid/ExternalCodeEditor_WIN32.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git fluid/ExternalCodeEditor_WIN32.cxx fluid/ExternalCodeEditor_WIN32.cxx
index 6955787..06d6868 100644
--- fluid/ExternalCodeEditor_WIN32.cxx
+++ fluid/ExternalCodeEditor_WIN32.cxx
@@ -38,7 +38,7 @@ static const char *get_ms_errmsg() {
     _snprintf(emsg, sizeof(emsg), "Error #%ld", (unsigned long)lastErr);
   } else {
     // Convert message to UTF-8
-    int mlen = fl_utf8fromwc(emsg, sizeof(emsg), mbuf, msize);
+    fl_utf8fromwc(emsg, sizeof(emsg), mbuf, msize);
     // Remove '\r's -- they screw up fl_alert()
     char *src = emsg, *dst = emsg;
     for ( ; 1; src++ ) {
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

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