Consider the following function declaration:
int f(int a, int (*b)(int a));
When compiled with g++ trunk using -Wshadow, some new, probably useless,
warnings appear:
shadow.h:2: warning: declaration of 'int a' shadows a parameter
shadow.h:2: warning: shadowed declaration is here
It seems to be a C++ related issue, since gcc -Wshadow compiles this
declaration with no warnings. As I see, the new warnings are present from
revision 140120.
--
Summary: Useless -Wshadow warnings for function pointer
parameters
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: derefer at gmail dot com
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39487