This is the mail archive of the gcc-patches@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]

Re: Shut up endless "value computed is not used" warnings


On Thu, Nov 30, 2000 at 01:43:37PM -0800, Richard Henderson wrote:
> On Wed, Nov 29, 2000 at 11:48:23PM -0800, Zack Weinberg wrote:
> > Anyhow, the idea is pretty straightforward - don't generate the
> > warning for anything with side effects.  I am not certain that this
> > patch doesn't break the warning in cases where it should trigger,
> > though.
> > 
> > Comments?
> 
> That same test exists in the default case.  Why doesn't that work?

Because the conversion case does 'goto warn;' and warn: is after the
side-effects test.

zw



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