Skip to content

Commit edbe2a2

Browse files
committed
Attempt to fix compiler warning.
Per a report from Tom Lane, newer versions of gcc apparently think that partexprs_item_saved can be used uninitialized. Try to convince them otherwise.
1 parent 93ece9c commit edbe2a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/catalog/partition.c

+1
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,7 @@ get_qual_for_range(PartitionKey key, PartitionBoundSpec *spec)
15581558
*/
15591559
i = 0;
15601560
partexprs_item = list_head(key->partexprs);
1561+
partexprs_item_saved = partexprs_item; /* placate compiler */
15611562
forboth(cell1, spec->lowerdatums, cell2, spec->upperdatums)
15621563
{
15631564
EState *estate;

0 commit comments

Comments
 (0)