pgsql: Suppress uninitialized-variable warnings.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress uninitialized-variable warnings.
Date: 2016-03-30 17:36:23
Message-ID: E1alK2Z-0003EM-Bm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-30 17:55:02 Re: [COMMITTERS] pgsql: Introduce SP-GiST operator class over box.
Previous Message Teodor Sigaev 2016-03-30 15:56:50 pgsql: Bump catalog version, forget in acdf2a8b372aec1da09370fca77ff7dc