Suppress "unused function" warning when not HAVE_LOCALE_T.

Forgot to consider this case ...
This commit is contained in:
Tom Lane 2011-09-20 17:47:21 -04:00
parent 37d4fd2b9d
commit 2562dcea81
1 changed files with 2 additions and 0 deletions

View 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 */
/*