re PR c/53066 (Wshadow should not warn for shadowing an extern function)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 29 Oct 2012 20:17:23 +0000 (20:17 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 29 Oct 2012 20:17:23 +0000 (20:17 +0000)
commit077d1abec135863c50dc0d7a11772b23aae22821
tree505d7a759421766b1f73cc99ae4e8492d75f4a37
parent36290bb4d5ca29006aaa97d5c1778594dec4ae22
re PR c/53066 (Wshadow should not warn for shadowing an extern function)

2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c/53066
c/
* c-decl.c (warn_if_shadowing): Do not warn if a variable
shadows a function, unless the variable is a function or a
pointer-to-function.
gcc/
* tree.h (FUNCTION_POINTER_TYPE_P): New.
testsuite/
* gcc.dg/Wshadow-4.c: New.
* gcc.dg/Wshadow-4.h: New.

From-SVN: r192963
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wshadow-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wshadow-4.h [new file with mode: 0644]
gcc/tree.h