summaryrefslogtreecommitdiff
path: root/locale.c
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 /locale.c
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 'locale.c')
-rw-r--r--locale.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/locale.c b/locale.c
index 89d3fc23e6..385c34fa37 100644
--- a/locale.c
+++ b/locale.c
@@ -648,6 +648,8 @@ S_less_dicey_void_setlocale_i(pTHX_ const unsigned cat_index,
# define void_setlocale_r(cat, locale) \
void_setlocale_i(get_category_index(cat, locale), locale)
+# if 0 /* Not currently used */
+
STATIC bool
S_less_dicey_bool_setlocale_r(pTHX_ const int cat, const char * locale)
{
@@ -662,6 +664,7 @@ S_less_dicey_bool_setlocale_r(pTHX_ const int cat, const char * locale)
return retval;
}
+# endif
# define bool_setlocale_r(cat, locale) \
less_dicey_bool_setlocale_r(cat, locale)
# define bool_setlocale_i(i, locale) \