We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbf6e4c3 commit253504fCopy full SHA for 253504f
src/backend/commands/collationcmds.c
@@ -411,10 +411,10 @@ get_icu_locale_comment(const char *localename)
411
Datum
412
pg_import_system_collations(PG_FUNCTION_ARGS)
413
{
414
-#if defined(HAVE_LOCALE_T)&& !defined(WIN32)
415
boolif_not_exists=PG_GETARG_BOOL(0);
416
Oidnspid=PG_GETARG_OID(1);
417
+#if defined(HAVE_LOCALE_T)&& !defined(WIN32)
418
FILE*locale_a_handle;
419
charlocalebuf[NAMEDATALEN];/* we assume ASCII so this is fine */
420
intcount=0;
@@ -431,6 +431,12 @@ pg_import_system_collations(PG_FUNCTION_ARGS)
431
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
432
(errmsg("must be superuser to import system collations"))));
433
434
+#if !(defined(HAVE_LOCALE_T)&& !defined(WIN32))&& !defined(USE_ICU)
435
+/* silence compiler warnings */
436
+(void)if_not_exists;
437
+(void)nspid;
438
+#endif
439
+
440
#if defined(HAVE_LOCALE_T)&& !defined(WIN32)
441
locale_a_handle=OpenPipeStream("locale -a","r");
442
if (locale_a_handle==NULL)