pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Silence assorted "variable may be used uninitialized" warnings.
Date: Wed, 14 Feb 2018 21:06:58 +0000
Message-ID: <E1em4GY-0001Qa-CE@gemulon.postgresql.org> (raw)

Silence assorted "variable may be used uninitialized" warnings.

All of these are false positives, but in each case a fair amount of
analysis is needed to see that, and it's not too surprising that not all
compilers are smart enough.  (In particular, in the logtape.c case, a
compiler lacking the knowledge provided by the Assert would almost surely
complain, so that this warning will be seen in any non-assert build.)

Some of these are of long standing while others are pretty recent,
but it only seems worth fixing them in HEAD.

Jaime Casanova, tweaked a bit by me

Discussion: https://postgr.es/m/CAJGNTeMcYAMJdPAom52dppLMtF-UnEZi0dooj==75OEv1EoBZA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9a725f7b5cb7e8c8894ef121b49eff9c265245c8

Modified Files
--------------
src/backend/access/transam/xloginsert.c | 2 +-
src/backend/catalog/objectaddress.c     | 2 ++
src/backend/utils/sort/logtape.c        | 2 +-
src/bin/pgbench/pgbench.c               | 7 ++++---
4 files changed, 8 insertions(+), 5 deletions(-)



Message-ID: <E1em4GY-0001Qa-CE@gemulon.postgresql.org>
Permalink:  ../E1em4GY-0001Qa-CE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1em4GY-0001Qa-CE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Silence assorted "variable may be used uninitialized" warnings.
  In-Reply-To: <E1em4GY-0001Qa-CE@gemulon.postgresql.org>
  References: <E1em4GY-0001Qa-CE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox