pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Suppress "variable may be used uninitialized" warning.
Date: Tue, 28 Jul 2015 20:54:18 -0400
Message-ID: <8117.1438131258@sss.pgh.pa.us> (raw)
In-Reply-To: <55B81A67.1010104@joeconway.com>
References: <E1ZKEjE-0000m0-Ry@gemulon.postgresql.org>
	<55B81A67.1010104@joeconway.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Joe Conway <mail@joeconway.com> writes:
>> Suppress "variable may be used uninitialized" warning.

> That's odd -- I compiled both with and without debug options looking
> for warnings and saw none.

That warning is very compiler-dependent; smarter compilers can prove
that an uninitialized usage is unreachable while dumber ones can't.
I saw it on RHEL6's gcc 4.4.7.  I figure that suppressing warnings
on any reasonably popular/modern compiler is fair game.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (6+ messages)  latest in thread

Message-ID: <8117.1438131258@sss.pgh.pa.us>
Permalink:  ../8117.1438131258@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8117.1438131258@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mail@joeconway.com
  Subject: Re: pgsql: Suppress "variable may be used uninitialized" warning.
  In-Reply-To: <8117.1438131258@sss.pgh.pa.us>

* 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