Commit edbe2a29 authored by Robert Haas's avatar Robert Haas

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.
parent 93ece9cc
...@@ -1558,6 +1558,7 @@ get_qual_for_range(PartitionKey key, PartitionBoundSpec *spec) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment