summaryrefslogtreecommitdiff
path: root/proto.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 /proto.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 'proto.h')
-rw-r--r--proto.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/proto.h b/proto.h
index e16801a14e..91d8b61e2c 100644
--- a/proto.h
+++ b/proto.h
@@ -4727,12 +4727,20 @@ STATIC const char * S_calculate_LC_ALL(pTHX_ const char ** individ_locales);
# endif
#endif
#if !(defined(USE_POSIX_2008_LOCALE))
-# 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)
+# 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)
STATIC bool S_less_dicey_bool_setlocale_r(pTHX_ const int cat, const char * locale);
#define PERL_ARGS_ASSERT_LESS_DICEY_BOOL_SETLOCALE_R \
assert(locale)
+# 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)
STATIC const char * S_less_dicey_setlocale_r(pTHX_ const int category, const char * locale);
#define PERL_ARGS_ASSERT_LESS_DICEY_SETLOCALE_R
STATIC void S_less_dicey_void_setlocale_i(pTHX_ const unsigned cat_index, const char * locale, const line_t line);