From: Tom Lane Date: Tue, 20 Sep 2011 21:47:21 +0000 (-0400) Subject: Suppress "unused function" warning when not HAVE_LOCALE_T. X-Git-Tag: REL9_1_1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c47e62949840f670402cb470ce267e9ea2431992;p=thirdparty%2Fpostgresql.git Suppress "unused function" warning when not HAVE_LOCALE_T. Forgot to consider this case ... --- 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 */ /*