Avoid unused variable warnings in g_ascii_strtod

This commit is contained in:
Matthias Clasen 2011-11-14 23:30:18 -05:00
parent 7c0ee79e34
commit 65eb65b777

View File

@ -683,6 +683,16 @@ gdouble
g_ascii_strtod (const gchar *nptr,
gchar **endptr)
{
#ifdef HAVE_STRTOD_L
g_return_val_if_fail (nptr != NULL, 0);
errno = 0;
return strtod_l (nptr, endptr, get_C_locale ());
#else
gchar *fail_pos;
gdouble val;
struct lconv *locale_data;
@ -694,12 +704,6 @@ g_ascii_strtod (const gchar *nptr,
g_return_val_if_fail (nptr != NULL, 0);
#ifdef HAVE_STRTOD_L
errno = 0;
return strtod_l (nptr, endptr, get_C_locale ());
#else
fail_pos = NULL;
locale_data = localeconv ();