Undo misguided distinction WRT deciding if a warning is an error or a warning.
authorBernhard Fischer <aldot@gcc.gnu.org>
Sun, 16 Dec 2007 17:16:15 +0000 (18:16 +0100)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Sun, 16 Dec 2007 17:16:15 +0000 (18:16 +0100)
A Warning is a warning, diagnostics DTRT. Cosmetic correction from fallout for
fix for PR21061. See ML-archives for details on why this hunk is wrong but
still harmless in effect.

2007-12-16  Bernhard Fischer  <aldot@gcc.gnu.org>

        * errors.c (gfc_notify_std): As originally stated but improperly
        changed, disregard warnings_are_errors for deciding which buffer
        to use for warnings.

From-SVN: r130990

gcc/fortran/ChangeLog
gcc/fortran/error.c

index 50425ab4b9d55b249e515bf4495c29b030fa4254..3e3d717fe9082b8d5bfa54b0434c55642e9f8876 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-16  Bernhard Fischer  <aldot@gcc.gnu.org>
+
+       * errors.c (gfc_notify_std): As originally stated but improperly
+       changed, disregard warnings_are_errors for deciding which buffer
+       to use for warnings.
+
 2007-12-16  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/31213
index e25a4286b24100e078b68311bc3bc4d91b7c6f99..fa1a505c3f3c5d3268b4cff1ed59e648d9a3d8fe 100644 (file)
@@ -715,8 +715,7 @@ gfc_notify_std (int std, const char *nocmsgid, ...)
   if (gfc_suppress_error)
     return warning ? SUCCESS : FAILURE;
 
-  cur_error_buffer = (warning && !warnings_are_errors)
-                  ? &warning_buffer : &error_buffer;
+  cur_error_buffer = warning ? &warning_buffer : &error_buffer;
   cur_error_buffer->flag = 1;
   cur_error_buffer->index = 0;