summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-03 11:33:22 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-03 11:33:22 -0400
commitf2ce9e1cc9fc855996e455e944119f1dd552891e (patch)
tree976dbb469cd3f398f29fb9a828c2e229f3c9688e /locale.c
parent0f2d63091dedddc38daad0029e097295a76b2e7f (diff)
downloadperl-f2ce9e1cc9fc855996e455e944119f1dd552891e.tar.gz
Avoid unused warnings from locale-less systems.
From Brian Fraser: "Technically, any Perl compiled with -Accflags="-UUSE_LOCALE", or -Ui_locale -Ud_setlocale... realistically, for Android".
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/locale.c b/locale.c
index 8775ce095d..cf0913d9c6 100644
--- a/locale.c
+++ b/locale.c
@@ -189,6 +189,8 @@ Perl_new_numeric(pTHX_ const char *newnum)
set_numeric_radix();
+#else
+ PERL_UNUSED_ARG(newnum);
#endif /* USE_LOCALE_NUMERIC */
}
@@ -329,6 +331,8 @@ Perl_new_collate(pTHX_ const char *newcoll)
}
}
+#else
+ PERL_UNUSED_ARG(newcoll);
#endif /* USE_LOCALE_COLLATE */
}
@@ -916,6 +920,8 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
Safefree(curnum);
#endif /* USE_LOCALE_NUMERIC */
+#else /* !USE_LOCALE */
+ PERL_UNUSED_ARG(printwarn);
#endif /* USE_LOCALE */
return ok;