diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-03 11:33:22 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-03 11:33:22 -0400 |
commit | f2ce9e1cc9fc855996e455e944119f1dd552891e (patch) | |
tree | 976dbb469cd3f398f29fb9a828c2e229f3c9688e /locale.c | |
parent | 0f2d63091dedddc38daad0029e097295a76b2e7f (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |