From 8ca52ee5407ed262fb2e3d0cf576a34ea54a042e Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 27 Jan 2024 07:41:22 -0700 Subject: [PATCH] locale.c: Avoid unused param warnings Under some configurations the three declarations here warned; the #ifdef was missing a term --- locale.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/locale.c b/locale.c index 588756cda87b..9c1145d1a668 100644 --- a/locale.c +++ b/locale.c @@ -6495,8 +6495,9 @@ S_emulate_langinfo(pTHX_ const int item, "Entering emulate_langinfo item=%ld, using locale %s\n", (long) item, locale)); -# if defined(HAS_LOCALECONV) && ( defined(USE_LOCALE_NUMERIC) \ - || defined(USE_LOCALE_MONETARY)) +# if defined(HAS_LOCALECONV) \ + && ! defined(HAS_SOME_LANGINFO) \ + && (defined(USE_LOCALE_NUMERIC) || defined(USE_LOCALE_MONETARY)) locale_category_index cat_index; const char * localeconv_key;