postgres.git / summary / log / commit / refs

commit    edbe2a29365e0358387db92db0ccd5260d2bc7b1
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Mon May 15 00:59:28 2017 +0000
First released in: 10.0

    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.


src/backend/catalog/partition.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/catalog/partition.c b/src/backend/catalog/partition.c index 885c533280f..832049c1ee5 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; [parent: 93ece9cc8872]