aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2015-09-14 19:27:50 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2015-09-14 19:27:50 +0000
commit0d179691da597b8e2cb9ff55a5875f2c60e1cfbd (patch)
treed1111a6ca96f46cd25e7fb0b9fc44f1375d175e1 /gcc/diagnostic.h
parent34e985136246df6832aed4dccdf7ed0cbcf4a9aa (diff)
downloadgcc-0d179691da597b8e2cb9ff55a5875f2c60e1cfbd.zip
gcc-0d179691da597b8e2cb9ff55a5875f2c60e1cfbd.tar.gz
gcc-0d179691da597b8e2cb9ff55a5875f2c60e1cfbd.tar.bz2
The flag diagnostic_context::some_warnings_are_errors controls whether to give...
The flag diagnostic_context::some_warnings_are_errors controls whether to give the message "all warnings being treated as errors". However, when warnings are buffered and then discarded, this flag is not reset. It turns out we do not need this flag at all, since we already count explicitly how many warnings were converted into errors, and this number is kept up to date for the buffered diagnostics used by Fortran. gcc/ChangeLog: 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org> PR fortran/67460 * diagnostic.c (diagnostic_initialize): Do not set some_warnings_are_errors. (diagnostic_finish): Use DK_WERROR count instead. (diagnostic_report_diagnostic): Do not set some_warnings_are_errors. * diagnostic.h (struct diagnostic_context): Remove some_warnings_are_errors. gcc/testsuite/ChangeLog: 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org> PR fortran/67460 * gfortran.dg/pr67460.f90: New test. From-SVN: r227760
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 1b9b7d4..7fcb6a8 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -66,10 +66,6 @@ struct diagnostic_context
/* The number of times we have issued diagnostics. */
int diagnostic_count[DK_LAST_DIAGNOSTIC_KIND];
- /* True if we should display the "warnings are being tread as error"
- message, usually displayed once per compiler run. */
- bool some_warnings_are_errors;
-
/* True if it has been requested that warnings be treated as errors. */
bool warning_as_error_requested;