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 uninitialized-variable warnings.
Date: Wed, 30 Mar 2016 17:36:23 +0000
Message-ID: <E1alK2Z-0003EM-Bm@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Suppress uninitialized-variable warnings.

My compiler doesn't like the lack of initialization of "flag", and
I think it's right: if there were zero keys we'd have an undefined
result.  The AND of zero items is TRUE, so initialize to TRUE.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/818e59373625d194bdec89631b661c4355d15f13

Modified Files
--------------
src/backend/utils/adt/geo_spgist.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 (20+ messages)  latest in thread

Message-ID: <E1alK2Z-0003EM-Bm@gemulon.postgresql.org>
Permalink:  ../E1alK2Z-0003EM-Bm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1alK2Z-0003EM-Bm@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Suppress uninitialized-variable warnings.
  In-Reply-To: <E1alK2Z-0003EM-Bm@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