[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24392] Cant compile in clang warning Wtautological-constan
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/24392] Cant compile in clang warning Wtautological-constant-out-of-range-compare |
Date: |
Thu, 28 Mar 2019 04:28:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24392
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
One proper solution is to implement the equivalent warning disable for clang
that this does for gcc:
#if GCC_VERSION >= 4003
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wtype-limits"
#endif
The "if" in question isn't always false when "long" is the same size as
"unsigned int", which is generally true on 32-bit hosts and even true for some
64-bit host compilers.
--
You are receiving this mail because:
You are on the CC list for the bug.