Commit 2562dcea authored by Tom Lane's avatar Tom Lane

Suppress "unused function" warning when not HAVE_LOCALE_T.

Forgot to consider this case ...
parent 37d4fd2b
...@@ -937,6 +937,7 @@ lc_ctype_is_c(Oid collation) ...@@ -937,6 +937,7 @@ lc_ctype_is_c(Oid collation)
/* simple subroutine for reporting errors from newlocale() */ /* simple subroutine for reporting errors from newlocale() */
#ifdef HAVE_LOCALE_T
static void static void
report_newlocale_failure(const char *localename) report_newlocale_failure(const char *localename)
{ {
...@@ -955,6 +956,7 @@ 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\".", errdetail("The operating system could not find any locale data for the locale name \"%s\".",
localename) : 0))); localename) : 0)));
} }
#endif /* HAVE_LOCALE_T */
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment