Paul Eggert eggert at CS.UCLA.EDU
Thu Feb 23 06:28:14 UTC 2006

Bennett Todd <bet at> writes:

> localtime.c:331: warning: comparison is always false due to limited range of data type

This is due to what I've always considered to be a bug in GCC.
See, for example,
I've never gotten around to fixing it, but in the meantime I would
ignore that message.

>> (If so then a #ifdef or two should fix the problem on systems
>> based on a moderately modern glibc,

There's no easy way to use #ifdefs, since the values in question
(e.g., the number of bits in a time_t) can't be computed by the

>> should be added to the list of CFLAGS adjustments in the
>> Makefile.)

Hmm, your compiler has long long and INT64_MAX, but not LLONG_MAX?
Which compiler is this?  Which header defines INT64_MAX?  Does your
compiler have stdint.h?  If so, does -DHAVE_STDINT_H work?  It's what
the Makefile recommends.

More information about the tz mailing list