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
218d0f8a
Commit
218d0f8a
authored
Jul 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stmt): Don't give more than one error message if a nested `if' has an
empty body. From-SVN: r7722
parent
4843c185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/c-parse.in
+3
-2
No files found.
gcc/c-parse.in
View file @
218d0f8a
...
@@ -1680,8 +1680,9 @@ stmt:
...
@@ -1680,8 +1680,9 @@ stmt:
{
expand_end_cond
();
{
expand_end_cond
();
/* This warning is here instead of in simple_if, because we
/* This warning is here instead of in simple_if, because we
do not want a warning if an empty if is followed by an
do not want a warning if an empty if is followed by an
else statement. */
else statement. Increment stmt_count so we don't
if
(
extra_warnings
&&
stmt_count
==
$
<
itype
>
1
)
give a second error if this is a nested `if'. */
if
(
extra_warnings
&&
stmt_count
++
==
$
<
itype
>
1
)
warning_with_file_and_line
(
if_stmt_file
,
if_stmt_line
,
warning_with_file_and_line
(
if_stmt_file
,
if_stmt_line
,
"empty body in an if-statement"
);
}
"empty body in an if-statement"
);
}
/* Make sure expand_end_cond is run once
/* Make sure expand_end_cond is run once
...
...
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