summaryrefslogtreecommitdiff
path: root/src/drivers/X11
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-01-21 13:38:26 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-01-21 13:38:26 +0100
commitc0f5080cb056919e898ac572e72fd62568dc307a (patch)
treea2069e3079bc16aae3ab9546547b8200705bbbfe /src/drivers/X11
parent09eff7243a6e8e37d9615df7b951ffa3c03c0ae2 (diff)
Fix compiler warnings [-Wunused-variable]
... and missing return value [-Wreturn-type]
Diffstat (limited to 'src/drivers/X11')
-rw-r--r--src/drivers/X11/Fl_X11_System_Driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/X11/Fl_X11_System_Driver.cxx b/src/drivers/X11/Fl_X11_System_Driver.cxx
index 2f3656a47..9ffae3d45 100644
--- a/src/drivers/X11/Fl_X11_System_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_System_Driver.cxx
@@ -113,6 +113,7 @@ int Fl_X11_System_Driver::clocale_snprintf(char *output, size_t output_size, con
int retval = vsnprintf(output, output_size, format, args);
setlocale(LC_NUMERIC, saved_locale);
#endif
+ return retval;
}
int Fl_X11_System_Driver::clocale_sscanf(const char *input, const char *format, va_list args) {
@@ -128,6 +129,7 @@ int Fl_X11_System_Driver::clocale_sscanf(const char *input, const char *format,
int retval = vsscanf(input, format, args);
setlocale(LC_NUMERIC, saved_locale);
#endif
+ return retval;
}
// Find a program in the path...