Skip to content

Commit 2562dce

Browse files
committed
Suppress "unused function" warning when not HAVE_LOCALE_T.
Forgot to consider this case ...
1 parent 37d4fd2 commit 2562dce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ lc_ctype_is_c(Oid collation)
937937

938938

939939
/* simple subroutine for reporting errors from newlocale() */
940+
#ifdef HAVE_LOCALE_T
940941
static void
941942
report_newlocale_failure(const char *localename)
942943
{
@@ -955,6 +956,7 @@ report_newlocale_failure(const char *localename)
955956
errdetail("The operating system could not find any locale data for the locale name \"%s\".",
956957
localename) : 0)));
957958
}
959+
#endif /* HAVE_LOCALE_T */
958960

959961

960962
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy