diff options
author | Karl Williamson <khw@cpan.org> | 2022-09-22 17:19:11 -0600 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2022-09-25 20:12:49 -0400 |
commit | ed4b2b05d25c19e1c2271b7f125531933fdab5aa (patch) | |
tree | fa207ba9c9756ea0a4811b44655112683fc9b1e0 /embed.h | |
parent | 63397005cf10eb6e95941b225062150533393d21 (diff) | |
download | perl-ed4b2b05d25c19e1c2271b7f125531933fdab5aa.tar.gz |
locale.c: Stop compiler warning
S_less_dicey_bool_setlocale_r() is a short function that makes a
complete set of similar functions, but there is no current use of it.
So just #ifdef it out.
This resolves #20338
Diffstat (limited to 'embed.h')
-rw-r--r-- | embed.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1529,10 +1529,18 @@ # endif # endif # if !(defined(USE_POSIX_2008_LOCALE)) +# if 0 +# if defined(PERL_IN_LOCALE_C) +# if defined(USE_LOCALE) +# if defined(USE_LOCALE_THREADS) && ! defined(USE_THREAD_SAFE_LOCALE) && ! defined(USE_THREAD_SAFE_LOCALE_EMULATION) +#define less_dicey_bool_setlocale_r(a,b) S_less_dicey_bool_setlocale_r(aTHX_ a,b) +# endif +# endif +# endif +# endif # if defined(PERL_IN_LOCALE_C) # if defined(USE_LOCALE) # if defined(USE_LOCALE_THREADS) && ! defined(USE_THREAD_SAFE_LOCALE) && ! defined(USE_THREAD_SAFE_LOCALE_EMULATION) -#define less_dicey_bool_setlocale_r(a,b) S_less_dicey_bool_setlocale_r(aTHX_ a,b) #define less_dicey_setlocale_r(a,b) S_less_dicey_setlocale_r(aTHX_ a,b) #define less_dicey_void_setlocale_i(a,b,c) S_less_dicey_void_setlocale_i(aTHX_ a,b,c) # endif |