Content-Length: 257211 | pFad | http://github.com/postgrespro/postgres/commit/edbe2a29365e0358387db92db0ccd5260d2bc7b1

72 Attempt to fix compiler warning. · postgrespro/postgres@edbe2a2 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/edbe2a29365e0358387db92db0ccd5260d2bc7b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy