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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy