diff options
author | Robert Haas | 2017-05-15 00:59:28 +0000 |
---|---|---|
committer | Robert Haas | 2017-05-15 00:59:28 +0000 |
commit | edbe2a29365e0358387db92db0ccd5260d2bc7b1 (patch) | |
tree | f61bcc4821feaaf5e9ad38a6c7dab8c0f5a41187 | |
parent | 93ece9cc887239deef6539d607063d98aa03aff3 (diff) |
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.
-rw-r--r-- | src/backend/catalog/partition.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/catalog/partition.c b/src/backend/catalog/partition.c index 885c533280..832049c1ee 100644 --- a/src/backend/catalog/partition.c +++ b/src/backend/catalog/partition.c @@ -1558,6 +1558,7 @@ get_qual_for_range(PartitionKey key, PartitionBoundSpec *spec) */ i = 0; partexprs_item = list_head(key->partexprs); + partexprs_item_saved = partexprs_item; /* placate compiler */ forboth(cell1, spec->lowerdatums, cell2, spec->upperdatums) { EState *estate; |