[tz] [PATCH] Fix warnings if !ALL_STATE: address of gmtmem always, evaluates as true

Paul Eggert eggert at cs.ucla.edu
Tue Feb 28 16:27:11 UTC 2017


On 02/28/2017 07:59 AM, Andreas Stieger wrote:
> If ALL_STATE is not defined, the address of gmtcheck always evaluates to true.

It's valid C code and does the right thing, so this warning is a false 
positive.

To compile without warnings with a recent GCC, you can use:

make CFLAGS='$(GCC_DEBUG_FLAGS)'

Other compilers (and older versions of GCC) may need other options. In 
general the code doesn't bother trying to silence all the warnings 
generated by all the world's C compilers, as the job would be endless 
and we might even have dueling compilers. Of course we should continue 
to fix real bugs and obvious howlers found by clever new compilers.


More information about the tz mailing list