Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff94205

Browse files
committed
Suppress "warning: variable 'collcollate' set but not used".
Buildfarm members that lack both HAVE_LOCALE_T and USE_ICU have beencomplaining about pg_newlocale_from_collation's collcollate variable.This is evidently fallout from commit7d1297d, which removed theonly usage outside those two #ifdef'd code paths. Mark the variablepg_attribute_unused(), like its sibling collctype, which has been thatway for a long time.
1 parent39f9f04 commitff94205

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
HeapTupletp;
15161516
Form_pg_collationcollform;
1517-
constchar*collcollate;
1517+
constchar*collcollatepg_attribute_unused();
15181518
constchar*collctypepg_attribute_unused();
15191519
structpg_locale_structresult;
15201520
pg_locale_tresultp;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp