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
22d74562
Commit
22d74562
authored
May 31, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(v_pedwarn_with_decl): Don't even issue warnings from
pedantic errors in system header files. From-SVN: r7398
parent
2bee0449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
gcc/toplev.c
+9
-7
No files found.
gcc/toplev.c
View file @
22d74562
...
@@ -1560,14 +1560,16 @@ v_pedwarn_with_decl (decl, s, ap)
...
@@ -1560,14 +1560,16 @@ v_pedwarn_with_decl (decl, s, ap)
"errors" in system header files. Sometimes fixincludes can't fix what's
"errors" in system header files. Sometimes fixincludes can't fix what's
broken (eg: unsigned char bitfields - fixing it may change the alignment
broken (eg: unsigned char bitfields - fixing it may change the alignment
which will cause programs to mysteriously fail because the C library
which will cause programs to mysteriously fail because the C library
or kernel uses the original layout).
or kernel uses the original layout). There's no point in issuing a
warning either, it's just unnecessary noise. */
??? In fact, we may wish not to issue any message in this case. */
if
(
!
DECL_IN_SYSTEM_HEADER
(
decl
))
{
if
(
flag_pedantic_errors
&&
!
DECL_IN_SYSTEM_HEADER
(
decl
))
if
(
flag_pedantic_errors
)
v_error_with_decl
(
decl
,
s
,
ap
);
v_error_with_decl
(
decl
,
s
,
ap
);
else
else
v_warning_with_decl
(
decl
,
s
,
ap
);
v_warning_with_decl
(
decl
,
s
,
ap
);
}
}
}
void
void
...
...
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