summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2011-09-20 21:47:21 +0000
committerTom Lane2011-09-20 21:47:21 +0000
commit2562dcea811eb642e1c5442e1ede9fe268278157 (patch)
tree46ca154bee05263c8d9acdc2f6ba407659bd55ae
parent37d4fd2b9d331076292201ab988fe54f09640850 (diff)
Suppress "unused function" warning when not HAVE_LOCALE_T.
Forgot to consider this case ...
-rw-r--r--src/backend/utils/adt/pg_locale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index 85fdf1dcd4..fe5e14b9dc 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 */
/*