https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011

Paul Eggert <eggert at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eggert at gnu dot org

--- Comment #8 from Paul Eggert <eggert at gnu dot org> ---
(In reply to Jakub Jelinek from comment #4)
> just use ~(time_t)0 or similar.
That has a cast, and part of the point of this bug report is to avoid casts
which are too powerful in C. Also, as an aficionado of time I stopped using
~(time_t)0 decades ago, as it doesn’t work on the rare C17-or-earlier platforms
where arithmetic is ones’ complement or signed magnitude.

-Wsign-compare gives so many false positives in good code that it’s typically
more trouble than it’s worth. Unfortunately it would take some work to
implement the intent of -Wsign-compare without all the false positives; this
bug report is just one example of the issue.

Reply via email to