#3891: Compiler warning on macOS 10.11.6 with Xcode 8.1
--------------------+----------------------
Reporter: chdiza | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: build | Version:
Keywords: |
--------------------+----------------------
I don't know whether this is troublesome or not; I'm reporting it here
just in case.
On macOS 10.11.6 with Xcode 8.1 (and possibly Xcode 8.0, I don't
remember), trying to build mutt from the mercurial tip succeeds, but
there's a compiler warning emitted by clang along the way:
{{{
gcc -DPKGDATADIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"
-DBINDIR=\"/usr/local/bin\" -DMUTTLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H=1 -I. -I. -I. -I./imap -Iintl -I/usr/local/ssl/include
-I./intl -Wall -pedantic -Wno-long-long -g -O2 -MT date.o -MD -MP -MF
.deps/date.Tpo -c -o date.o date.c
date.c:81:18: warning: comparison of constant 291672108984 with expression
of type 'int' is always false [-Wtautological-constant-out-of-range-
compare]
if (t->tm_year > TM_YEAR_MAX)
~~~~~~~~~~ ^ ~~~~~~~~~~~
1 warning generated.
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3891>
Mutt <http://www.mutt.org/>
The Mutt mail user agent