[Bug middle-end/26632] spurious warning: value computed is not used
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 10 15:17:00 GMT 2006
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-10 15:16 -------
Hmm, what is going on here is the following.
0 ? h() : g();
is not really just that but instead:
0 ? h() : (long)g();
which then gets foldded into:
(long)g();
and we warn about the cast.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632
More information about the Gcc-bugs
mailing list