This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/26632] spurious warning: value computed is not used



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]