projects
/
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 83a696276629df66b8b709efbd7c59e093d4b494..771574000639fd2173675585a2a9f9be60e7a1ce 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'");
}