diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2005-07-30 00:58:37 +0100 |
|---|---|---|
| committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-07-30 00:58:37 +0100 |
| commit | 7c47d6e984423f92f6f7d40e37026ae9402d579a (patch) | |
| tree | 3ad218f5e1b3a354c3a0ba4c3d6b6756f4ca0a8d /gcc/lambda-code.c | |
| parent | 3bc751bdfeb8cdd76c9a0214f0f9da6b440b590c (diff) | |
| download | gcc-7c47d6e984423f92f6f7d40e37026ae9402d579a.zip gcc-7c47d6e984423f92f6f7d40e37026ae9402d579a.tar.gz gcc-7c47d6e984423f92f6f7d40e37026ae9402d579a.tar.bz2 | |
re PR c/529 (-Wshadow warns on function prototypes vs. global vars)
PR c/529
* c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
nested function declarators.
(pushdecl): Don't call warn_if_shadowing for PARM_DECL.
(grokparms): Call warn_if_shadowing for parameters used within the
parameter list.
(store_parm_decls_newstyle): Call warn_if_shadowing for parameters
not used within the parameter list.
(store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
testsuite:
* gcc.dg/Wshadow-3.c: New test.
From-SVN: r102571
Diffstat (limited to 'gcc/lambda-code.c')
0 files changed, 0 insertions, 0 deletions
