https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950

--- Comment #26 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #25)
> (In reply to Marc Glisse from comment #6)
> > For:
> > 
> > void f(){
> >   int i = 2;
> >   (i+i);
> > }
> 
> This case is fixed on the trunk:
> 
> <source>: In function 'void f1()':
> <source>:9:5: warning: statement has no effect [-Wunused-value]
>     9 |   (i+i);
>       |   ~~^~~

I think it was fixed via r12-1804-g65870e75616ee4359d1c13b99 .

Reply via email to