[Bug c++/12963] Wrong and misleading warning encourages writing non-portable code
bagnara at cs dot unipr dot it
gcc-bugzilla@gcc.gnu.org
Mon Sep 20 13:12:00 GMT 2004
------- Additional Comments From bagnara at cs dot unipr dot it 2004-09-20 13:12 -------
To my claim that the warning "comparison is always false due to limited range of
data type" should be disabled by default, I would like to add the fact that GCC
is highly inconsistent in this respect. In fact, as the attached file v.cc
shows, the warning is given only for char and short whereas it is not given for
int, long and long long.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12963
More information about the Gcc-bugs
mailing list