]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Suppress "unused function" warning when not HAVE_LOCALE_T.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Sep 2011 21:47:21 +0000 (17:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Sep 2011 21:47:43 +0000 (17:47 -0400)
Forgot to consider this case ...

src/backend/utils/adt/pg_locale.c

index 0491df1839b8445e68dc3e5e20936d10f00396fa..401440afae6f1d55d77c63e874fe22f7cc453be0 100644 (file)
@@ -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 */
 
 
 /*