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
36e6fa69
Commit
36e6fa69
authored
Feb 13, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(c_decode_option): Handle -Wmissing-braces.
From-SVN: r3471
parent
815a862a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
gcc/c-decl.c
+9
-0
No files found.
gcc/c-decl.c
View file @
36e6fa69
...
...
@@ -497,6 +497,10 @@ int warn_conversion;
int
warn_parentheses
;
/* Warn if initializer is not completely bracketed. */
int
warn_missing_braces
;
/* Nonzero means `$' can be in an identifier.
See cccp.c for reasons why this breaks some obscure ANSI C programs. */
...
...
@@ -645,6 +649,10 @@ c_decode_option (p)
;
/* cpp handles this one. */
else
if
(
!
strcmp
(
p
,
"-Wno-import"
))
;
/* cpp handles this one. */
else
if
(
!
strcmp
(
p
,
"-Wmissing-braces"
))
warn_missing_braces
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-missing-braces"
))
warn_missing_braces
=
0
;
else
if
(
!
strcmp
(
p
,
"-Wall"
))
{
extra_warnings
=
1
;
...
...
@@ -660,6 +668,7 @@ c_decode_option (p)
warn_format
=
1
;
warn_char_subscripts
=
1
;
warn_parentheses
=
1
;
warn_missing_braces
=
1
;
}
else
return
0
;
...
...
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