MFC rev 1.13 of c-decl.c. A nice side effect is that it's once again
possible to compile a HEAD kernel in a RELENG_6 world via the normal shortcuts. Approved by: re
This commit is contained in:
parent
19d0d47dcf
commit
8e9278f664
@ -1264,7 +1264,10 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
|
||||
&& !(DECL_EXTERNAL (olddecl) && !DECL_EXTERNAL (newdecl))
|
||||
/* Don't warn about forward parameter decls. */
|
||||
&& !(TREE_CODE (newdecl) == PARM_DECL
|
||||
&& TREE_ASM_WRITTEN (olddecl) && !TREE_ASM_WRITTEN (newdecl)))
|
||||
&& TREE_ASM_WRITTEN (olddecl) && !TREE_ASM_WRITTEN (newdecl))
|
||||
/* Don't warn about a variable definition following a declaration. */
|
||||
&& !(TREE_CODE (newdecl) == VAR_DECL
|
||||
&& DECL_INITIAL (newdecl) && !DECL_INITIAL (olddecl)))
|
||||
{
|
||||
warning ("%Jredundant redeclaration of '%D'", newdecl, newdecl);
|
||||
warned = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user