pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix compiler warning.
Date: Wed, 15 Jan 2014 15:33:47 +0000
Message-ID: <E1W3STT-00087X-9i@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix compiler warning.

Kevin Gritter reports that his compiler complains about inq and outq
being possibly-uninitialized at the point where they are passed to
shm_mq_attach().  They are initialized by the call to
setup_dynamic_shared_memory, but apparently his compiler is inlining
that function and then having doubts about whether the for loop will
always execute at least once.  Fix by initializing them to NULL.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d89746c7c534ef5b061fee0b8f587042f55bd92d

Modified Files
--------------
contrib/test_shm_mq/setup.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


-- 
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 (30+ messages)  latest in thread

Message-ID: <E1W3STT-00087X-9i@gemulon.postgresql.org>
Permalink:  ../E1W3STT-00087X-9i@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1W3STT-00087X-9i@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Fix compiler warning.
  In-Reply-To: <E1W3STT-00087X-9i@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