Fix two compiler warnings [-Wunused-variable]

This commit is contained in:
Albrecht Schlosser 2021-08-30 14:28:35 +02:00
parent dc13b56915
commit 418699fcea
2 changed files with 3 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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++ ) {