summaryrefslogtreecommitdiff
path: root/src/drivers/Darwin
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-31 04:32:34 +0000
committerManolo Gouy <Manolo>2016-03-31 04:32:34 +0000
commit9959aff3681ccb897dc861cbfe08a1d4f4ee937c (patch)
tree4cc3c4edf42b58499ee24e267ed9c05756d92b2d /src/drivers/Darwin
parentd67f395031b0e9cfb266bf31a4a5e08a2d109e3b (diff)
Fix "warning: control may reach end of non-void function" in Fl_Darwin_System_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Darwin')
-rw-r--r--src/drivers/Darwin/Fl_Darwin_System_Driver.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
index 8fbdac6ca..ee8a0eb31 100644
--- a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
+++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
@@ -106,16 +106,14 @@ int Fl_Darwin_System_Driver::clocale_printf(FILE *output, const char *format, va
static locale_t postscript_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
return vfprintf_l(output, postscript_locale, format, args);
}
-#else
+#endif
char *saved_locale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
int retval = vfprintf(output, format, args);
setlocale(LC_NUMERIC, saved_locale);
return retval;
-#endif
}
-
//
// End of "$Id$".
//