--- Comment #7 from gerald at pfeifer dot com 2010-05-01 16:47 ---
(In reply to comment #4)
> I think this applies to 4.3 as well, as the following code does only warn in
> the second function:
The current snapshot mentioned above now warns as follows:
y.c: In function 'oldstyle':
y.c:
--- Comment #6 from gerald at pfeifer dot com 2010-05-01 16:39 ---
(In reply to comment #0)
> Consider the following code snippet:
> bash-2.05$ cat foo.cc
> struct X { int y; };
>
> void foo() {
> X c;
> X tmp2;
> X d = tmp2;
> }
>
> Both c and d are unused. However, we only ge
--- Comment #5 from manu at gcc dot gnu dot org 2009-07-08 22:08 ---
Are there some cases where a declaration such T x = y can be considered an use
of 'x' by itself?
The following patch warns for this, but it also produces warnings for some
testcases in the testsuite.
Index: gcc/cp/ini
--- Comment #4 from flameeyes at gentoo dot org 2008-05-11 16:31 ---
I think this applies to 4.3 as well, as the following code does only warn in
the second function:
#include
#include
char* oldstyle(const char *foo) {
size_t foolen;
if ( foo == NULL )
return NULL;
foolen