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: Suppress possibly-uninitialized-variable warnings from gcc 4.5.
Date: Sat, 22 Jan 2011 22:57:13 +0000
Message-ID: <E1PgmOP-0007V4-Km@gemulon.postgresql.org> (raw)

Suppress possibly-uninitialized-variable warnings from gcc 4.5.

It appears that gcc 4.5 can issue such warnings for whole structs, not
just scalar variables as in the past.  Refactor some pg_dump code slightly
so that the OutputContext local variables are always initialized, even
if they won't be used.  It's cheap enough to not be worth worrying about.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=e2627258c3cc43b8b00c5c29c35933a3325...

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c |   44 ++++++++++++++++++++++-----------
src/bin/pg_dump/pg_backup_archiver.h |    6 ----
2 files changed, 29 insertions(+), 21 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1PgmOP-0007V4-Km@gemulon.postgresql.org>
Permalink:  ../E1PgmOP-0007V4-Km@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1PgmOP-0007V4-Km@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: Suppress possibly-uninitialized-variable warnings from gcc 4.5.
  In-Reply-To: <E1PgmOP-0007V4-Km@gemulon.postgresql.org>
  References: <E1PgmOP-0007V4-Km@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