From c47e62949840f670402cb470ce267e9ea2431992 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 20 Sep 2011 17:47:21 -0400 Subject: [PATCH] Suppress "unused function" warning when not HAVE_LOCALE_T. Forgot to consider this case ... --- src/backend/utils/adt/pg_locale.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 0491df1839b..401440afae6 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -937,6 +937,7 @@ lc_ctype_is_c(Oid collation) /* simple subroutine for reporting errors from newlocale() */ +#ifdef HAVE_LOCALE_T static void report_newlocale_failure(const char *localename) { @@ -955,6 +956,7 @@ report_newlocale_failure(const char *localename) errdetail("The operating system could not find any locale data for the locale name \"%s\".", localename) : 0))); } +#endif /* HAVE_LOCALE_T */ /* -- 2.39.5