(expand_function_end): Don't warn about unused

anonymous or artificial parms.

From-SVN: r9585
This commit is contained in:
Jason Merrill 1995-05-07 10:28:12 +00:00
parent 8d75e50998
commit 497dc802f6
1 changed files with 2 additions and 1 deletions

View File

@ -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'");
}