This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for bug 23113
- From: Tom Truscott <trt at unx dot sas dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: joseph at codesourcery dot com
- Date: Fri, 5 Aug 2005 10:53:36 -0400 (EDT)
- Subject: Re: Patch for bug 23113
The patch catches the missed important things,
but I think it warns about too much.
Here are common macro expansions for which I would prefer no warning:
void * bar(void);
void foo(void *p)
{
((p = bar()) != 0);
(p = bar(), p ? 1 : 0);
(bar() ? 1 : 0);
}
Aside: testsuite/gcc.dg/Wunused-value-1.c contains code
for which warnings are presumably unwanted.
Should there be "dg-bogus" for those lines? Or is that unnecessary?
Thanks much for considering this,
Tom Truscott