#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:
Resolution: | Keywords:
---------------------+----------------------
Comment (by vinc17):
This could be regarded as a bug in clang, as such comparisons are common
for portability reasons. There was the same problem with GCC in the past,
and it was fixed 9 years ago by not including these warnings in
{{{-Wall}}}:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12963
So, IMHO, close as wontfix. Or in case it would avoid the warning (not
sure), cast {{{t->tm_year}}} to {{{time_t}}} in the comparison (I suppose
that {{{time_t}}} has at least the size of an {{{int}}} in practice, so
that it shouldn't hurt).
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3891#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent