This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26632] New: spurious warning: value computed is not used
- From: "mattias at virtutech dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 15:15:05 -0000
- Subject: [Bug c/26632] New: spurious warning: value computed is not used
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Using gcc 4.1.0 on amd64, with -Wall (64 bit target):
int g(void);
long h(void);
void f(void)
{
0 ? h() : g();
}
foo.c:6: warning: value computed is not used
Either changing 0 to 1 or swapping g and h makes the warning go away.
This was the result of a (very reasonable) macro expansion.
--
Summary: spurious warning: value computed is not used
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mattias at virtutech dot se
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632