diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-15 12:39:49 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-15 12:39:49 -0500 |
commit | ff94205787244ace8ce63e3d9eb98338c59ac215 (patch) | |
tree | e2654aba829b3ea66ce662f78e86200574af0191 /src | |
parent | 39f9f04b57844143c7f510cc901501057103bfe4 (diff) | |
download | postgresql-ff94205787244ace8ce63e3d9eb98338c59ac215.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/pg_locale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 1dfe343b79..cc4bf3b500 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -1514,7 +1514,7 @@ pg_newlocale_from_collation(Oid collid) /* We haven't computed this yet in this session, so do it */ HeapTuple tp; Form_pg_collation collform; - const char *collcollate; + const char *collcollate pg_attribute_unused(); const char *collctype pg_attribute_unused(); struct pg_locale_struct result; pg_locale_t resultp; |