diff options
author | Karl Williamson <khw@cpan.org> | 2022-09-03 06:52:12 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-09-10 09:27:17 -0600 |
commit | f4fdec1fc8df1ef0400134e720b67589da5c8200 (patch) | |
tree | 5cb9224b3069d2bad8ac1aacd1a5a4766b5df41e /locale.c | |
parent | 95e4742c49bd11279dcd70828f262ea73db7633d (diff) | |
download | perl-f4fdec1fc8df1ef0400134e720b67589da5c8200.tar.gz |
locale.c: Silence compiler warning about S_new_numeric
This function is not used unless LC_NUMERIC is enabled, so need not be
defined unless that is true.
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1604,19 +1604,13 @@ S_setlocale_failure_panic_i(pTHX_ || defined(HAS_SNPRINTF)) # define CAN_CALCULATE_RADIX # endif +# ifdef USE_LOCALE_NUMERIC STATIC void S_new_numeric(pTHX_ const char *newnum) { PERL_ARGS_ASSERT_NEW_NUMERIC; -# ifndef USE_LOCALE_NUMERIC - - PERL_ARGS_ASSERT_NEW_NUMERIC; - PERL_UNUSED_ARG(newnum); - -# else - /* Called after each libc setlocale() call affecting LC_NUMERIC, to tell * core Perl this and that 'newnum' is the name of the new locale, and we * are switched into it. It installs this locale as the current underlying @@ -1759,10 +1753,10 @@ S_new_numeric(pTHX_ const char *newnum) set_numeric_standard(); } -# endif - } +# endif + void Perl_set_numeric_standard(pTHX) { |