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 c/24900] new "value computed is not used" warning in gcc 4.1



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


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