Re: tapeblocks is uninitialized in logtape.c - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: tapeblocks is uninitialized in logtape.c
Date
Msg-id c0ce8658-f8a1-77e5-abad-ab37d3a3dfa3@2ndquadrant.com
Whole thread Raw
In response to Re: tapeblocks is uninitialized in logtape.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: tapeblocks is uninitialized in logtape.c
Re: tapeblocks is uninitialized in logtape.c
List pgsql-hackers
On 2/13/18 23:10, Tom Lane wrote:
> Jaime Casanova <jaime.casanova@2ndquadrant.com> writes:
>>> My compiler gives me this message
>>> logtape.c: In function ‘ltsConcatWorkerTapes’:
>>> logtape.c:462:48: warning: ‘tapeblocks’ may be used uninitialized in
>>> this function [-Wmaybe-uninitialized]
>>> lts->nBlocksAllocated = lt->offsetBlockNumber + tapeblocks;
> 
> FWIW, I'm not seeing that.  What compiler are you using exactly?

This warning comes from using -Og instead of -O2.

It's the only such warning, so it would be nice to silence it, because
using -Og is somewhat useful.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: "henry@visionlink.org"
Date:
Subject: Re: Cached/global query plans, autopreparation
Next
From: Andres Freund
Date:
Subject: Re: Cached/global query plans, autopreparation