------- Comment #4 from neil at daikokuya dot co dot uk 2006-03-11 00:15 ------- Subject: Re: spurious warning: value computed is not used
pinskia at gcc dot gnu dot org wrote:- > > > ------- 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. Every time we get bitten by issuing diagnostics after parts of GCC other than the front end manipulate the IR. These bugs won't go away until GCC stops doing this. Neil. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632