[Bug c/24900] new "value computed is not used" warning in gcc 4.1

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 16 18:30:00 GMT 2005



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-11-16 18:30 -------
Here is a further reduced testcase:
unsigned long t(void);

void apic_write_atomic(unsigned long reg, unsigned int v)
{
 ((__typeof__(*((volatile unsigned int *)((t())+reg))))t());
}

-Wall is all is needed to reproduce the issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24900



More information about the Gcc-bugs mailing list