Content-Length: 267199 | pFad | http://github.com/postgrespro/postgres/commit/2562dcea811eb642e1c5442e1ede9fe268278157

22 Suppress "unused function" warning when not HAVE_LOCALE_T. · postgrespro/postgres@2562dce · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2562dcea811eb642e1c5442e1ede9fe268278157

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy