pgsql: Suppress "warning: variable 'collcollate' set but not used".

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Suppress "warning: variable 'collcollate' set but not used".
Date: 2020-11-15 17:39:55
Message-ID: E1keM0J-00053J-22@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suppress "warning: variable 'collcollate' set but not used".

Buildfarm members that lack both HAVE_LOCALE_T and USE_ICU have been
complaining about pg_newlocale_from_collation's collcollate variable.
This is evidently fallout from commit 7d1297df0, which removed the
only usage outside those two #ifdef'd code paths. Mark the variable
pg_attribute_unused(), like its sibling collctype, which has been that
way for a long time.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ff94205787244ace8ce63e3d9eb98338c59ac215

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-11-15 19:54:06 pgsql: nbtree: Demote incomplete split "can't happen" error.
Previous Message Heikki Linnakangas 2020-11-15 15:10:33 pgsql: Fix timing issue in pg_rewind test.