Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
db8717d9
Commit
db8717d9
authored
Apr 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_function_end): Warn about unused parms if both -Wunused and -W.
From-SVN: r9489
parent
3fc341ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
gcc/function.c
+4
-6
No files found.
gcc/function.c
View file @
db8717d9
...
...
@@ -5234,18 +5234,16 @@ expand_function_end (filename, line, end_bindings)
emit_insns_before
(
seq
,
tail_recursion_reentry
);
}
#if 0 /* I think unused parms are legitimate enough. */
/* Warn about unused parms. */
if (warn_unused)
/* Warn about unused parms if extra warnings were specified. */
if
(
warn_unused
&&
extra_warnings
)
{
rtx
decl;
tree
decl
;
for
(
decl
=
DECL_ARGUMENTS
(
current_function_decl
);
decl
;
decl
=
TREE_CHAIN
(
decl
))
if (! TREE_USED (decl) && TREE_CODE (decl) ==
VAR
_DECL)
if
(
!
TREE_USED
(
decl
)
&&
TREE_CODE
(
decl
)
==
PARM
_DECL
)
warning_with_decl
(
decl
,
"unused parameter `%s'"
);
}
#endif
/* Delete handlers for nonlocal gotos if nothing uses them. */
if
(
nonlocal_goto_handler_slot
!=
0
&&
!
current_function_has_nonlocal_label
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment