summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-09-22 17:19:11 -0600
committerJames E Keenan <jkeenan@cpan.org>2022-09-25 20:12:49 -0400
commited4b2b05d25c19e1c2271b7f125531933fdab5aa (patch)
treefa207ba9c9756ea0a4811b44655112683fc9b1e0 /embed.h
parent63397005cf10eb6e95941b225062150533393d21 (diff)
downloadperl-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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index e5def97c74..d30f315bb2 100644
--- a/embed.h
+++ b/embed.h
@@ -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