Skip to content

Commit ff94205

Browse files
committed
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 7d1297d, 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.
1 parent 39f9f04 commit ff94205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ pg_newlocale_from_collation(Oid collid)
15141514
/* We haven't computed this yet in this session, so do it */
15151515
HeapTuple tp;
15161516
Form_pg_collation collform;
1517-
const char *collcollate;
1517+
const char *collcollate pg_attribute_unused();
15181518
const char *collctype pg_attribute_unused();
15191519
struct pg_locale_struct result;
15201520
pg_locale_t resultp;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy