Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)