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 /locale.c | |
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 'locale.c')
-rw-r--r-- | locale.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) \ |