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
1554cdf5
Commit
1554cdf5
authored
Mar 24, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(v_pedwarn_with_decl): Don't cause compilation to fail
from pedantic errors in system header files. From-SVN: r6865
parent
9457cc61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/toplev.c
+9
-1
No files found.
gcc/toplev.c
View file @
1554cdf5
...
...
@@ -1541,7 +1541,15 @@ v_pedwarn_with_decl (decl, s, ap)
char
*
s
;
va_list
ap
;
{
if
(
flag_pedantic_errors
)
/* We don't want -pedantic-errors to cause the compilation to fail from
"errors" in system header files. Sometimes fixincludes can't fix what's
broken (eg: unsigned char bitfields - fixing it may change the alignment
which will cause programs to mysteriously fail because the C library
or kernel uses the original layout).
??? In fact, we may wish not to issue any message in this case. */
if
(
flag_pedantic_errors
&&
!
DECL_IN_SYSTEM_HEADER
(
decl
))
v_error_with_decl
(
decl
,
s
,
ap
);
else
v_warning_with_decl
(
decl
,
s
,
ap
);
...
...
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