This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26632] spurious warning: value computed is not used
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 15:16:56 -0000
- Subject: [Bug middle-end/26632] spurious warning: value computed is not used
- References: <bug-26632-153@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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