mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 00:01:55 -04:00
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.
This commit is contained in:
parent
93ece9cc88
commit
edbe2a2936
@ -1558,6 +1558,7 @@ get_qual_for_range(PartitionKey key, PartitionBoundSpec *spec)
|
|||||||
*/
|
*/
|
||||||
i = 0;
|
i = 0;
|
||||||
partexprs_item = list_head(key->partexprs);
|
partexprs_item = list_head(key->partexprs);
|
||||||
|
partexprs_item_saved = partexprs_item; /* placate compiler */
|
||||||
forboth(cell1, spec->lowerdatums, cell2, spec->upperdatums)
|
forboth(cell1, spec->lowerdatums, cell2, spec->upperdatums)
|
||||||
{
|
{
|
||||||
EState *estate;
|
EState *estate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user