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
9282f2f9
Commit
9282f2f9
authored
Jul 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(shadow_tag_warned): New function.
From-SVN: r1684
parent
5fe86b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gcc/c-decl.c
+10
-2
No files found.
gcc/c-decl.c
View file @
9282f2f9
...
...
@@ -385,6 +385,7 @@ static struct binding_level *label_level_chain;
static
tree
grokparms
(),
grokdeclarator
();
tree
pushdecl
();
tree
builtin_function
();
void
shadow_tag_warned
();
static
tree
lookup_tag
();
static
tree
lookup_tag_reverse
();
...
...
@@ -2790,8 +2791,15 @@ void
shadow_tag
(
declspecs
)
tree
declspecs
;
{
shadow_tag_warned
(
declspecs
,
0
);
}
void
shadow_tag_warned
(
declspecs
,
warned
)
tree
declspecs
;
int
warned
;
{
int
found_tag
=
0
;
int
warned
=
0
;
register
tree
link
;
pending_invalid_xref
=
0
;
...
...
@@ -2812,7 +2820,7 @@ shadow_tag (declspecs)
if
(
name
==
0
)
{
if
(
code
!=
ENUMERAL_TYPE
)
/* Empty unnamed enum OK */
if
(
!
warned
&&
code
!=
ENUMERAL_TYPE
)
/* Empty unnamed enum OK */
{
pedwarn
(
"unnamed struct/union that defines no instances"
);
warned
=
1
;
...
...
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