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
d5e7854c
Commit
d5e7854c
authored
Oct 12, 2016
by
Nathan Sidwell
Committed by
Nathan Sidwell
Oct 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
From-SVN: r241027
parent
393525af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
gcc/ChangeLog
+4
-0
gcc/diagnostic.c
+6
-4
No files found.
gcc/ChangeLog
View file @
d5e7854c
2016-10-12 Nathan Sidwell <nathan@acm.org>
* diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
* dwarf2out.c (int_loc_descriptor): Generate opcodes for another
* dwarf2out.c (int_loc_descriptor): Generate opcodes for another
...
...
gcc/diagnostic.c
View file @
d5e7854c
...
@@ -877,13 +877,15 @@ diagnostic_report_diagnostic (diagnostic_context *context,
...
@@ -877,13 +877,15 @@ diagnostic_report_diagnostic (diagnostic_context *context,
}
}
}
}
}
}
/* This tests if the user provided the appropriate -Werror=foo
/* This tests if the user provided the appropriate -Werror=foo
option. */
option. */
if
(
diag_class
==
DK_UNSPECIFIED
if
(
diag_class
==
DK_UNSPECIFIED
&&
context
->
classify_diagnostic
[
diagnostic
->
option_index
]
!=
DK_UNSPECIFIED
)
&&
(
context
->
classify_diagnostic
[
diagnostic
->
option_index
]
{
!=
DK_UNSPECIFIED
))
diagnostic
->
kind
=
context
->
classify_diagnostic
[
diagnostic
->
option_index
];
diagnostic
->
kind
}
=
context
->
classify_diagnostic
[
diagnostic
->
option_index
];
/* This allows for future extensions, like temporarily disabling
/* This allows for future extensions, like temporarily disabling
warnings for ranges of source code. */
warnings for ranges of source code. */
if
(
diagnostic
->
kind
==
DK_IGNORED
)
if
(
diagnostic
->
kind
==
DK_IGNORED
)
...
...
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