This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24900] new "value computed is not used" warning in gcc 4.1
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2005 18:30:24 -0000
- Subject: [Bug c/24900] new "value computed is not used" warning in gcc 4.1
- References: <bug-24900-4603@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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