summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-20 17:47:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-20 17:47:21 -0400
commit2562dcea811eb642e1c5442e1ede9fe268278157 (patch)
tree46ca154bee05263c8d9acdc2f6ba407659bd55ae /src
parent37d4fd2b9d331076292201ab988fe54f09640850 (diff)
downloadpostgresql-2562dcea811eb642e1c5442e1ede9fe268278157.tar.gz
Suppress "unused function" warning when not HAVE_LOCALE_T.
Forgot to consider this case ...
Diffstat (limited to 'src')
-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 */
/*