Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Mar 8, 2017 at 12:45 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Jeff Janes <jeff.janes@gmail.com> writes:
>>> I'm getting some compiler warnings in gcc version 4.4.7 20120313 (Red Hat
>>> 4.4.7-17) (GCC):
>> Me too. Fix pushed.
> Thanks. Sorry for the hassle; my compiler isn't as picky about this
> as I would like, and apparently Dilip's isn't either.
Might be interesting to see whether -O level affects it. In principle,
whether you get the warning should depend on how much the compiler has
analyzed the logic flow ...
regards, tom lane