pgsql: Suppress uninitialized-variable warnings. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Suppress uninitialized-variable warnings.
Date
Msg-id E1alK2Z-0003EM-Bm@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Teodor Sigaev
Date:
Subject: pgsql: Bump catalog version, forget in acdf2a8b372aec1da09370fca77ff7dc
Next
From: Tom Lane
Date:
Subject: pgsql: Improve portability of I/O behavior for the geometric types.