projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d75e50
)
(expand_function_end): Don't warn about unused
author
Jason Merrill
<merrill@gnu.org>
Sun, 7 May 1995 10:28:12 +0000
(10:28 +0000)
committer
Jason Merrill
<merrill@gnu.org>
Sun, 7 May 1995 10:28:12 +0000
(10:28 +0000)
anonymous or artificial parms.
From-SVN: r9585
gcc/function.c
patch
|
blob
|
history
diff --git
a/gcc/function.c
b/gcc/function.c
index
83a6962
..
7715740
100644
(file)
--- a/
gcc/function.c
+++ b/
gcc/function.c
@@
-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'");
}