(expand_function_end): Don't warn about unused
anonymous or artificial parms. From-SVN: r9585
This commit is contained in:
parent
8d75e50998
commit
497dc802f6
|
@ -5241,7 +5241,8 @@ expand_function_end (filename, line, end_bindings)
|
|||
|
||||
for (decl = DECL_ARGUMENTS (current_function_decl);
|
||||
decl; decl = TREE_CHAIN (decl))
|
||||
if (! TREE_USED (decl) && TREE_CODE (decl) == PARM_DECL)
|
||||
if (! TREE_USED (decl) && TREE_CODE (decl) == PARM_DECL
|
||||
&& DECL_NAME (decl) && ! DECL_ARTIFICIAL (decl))
|
||||
warning_with_decl (decl, "unused parameter `%s'");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue