Undo misguided distinction WRT deciding if a warning is an error or a warning.

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
This commit is contained in:
Bernhard Fischer 2007-12-16 18:16:15 +01:00 committed by Bernhard Reutner-Fischer
parent 42cb1b8960
commit ac8bb1ec43
2 changed files with 7 additions and 2 deletions

View 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> 2007-12-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31213 PR fortran/31213

View File

@ -715,8 +715,7 @@ gfc_notify_std (int std, const char *nocmsgid, ...)
if (gfc_suppress_error) if (gfc_suppress_error)
return warning ? SUCCESS : FAILURE; return warning ? SUCCESS : FAILURE;
cur_error_buffer = (warning && !warnings_are_errors) cur_error_buffer = warning ? &warning_buffer : &error_buffer;
? &warning_buffer : &error_buffer;
cur_error_buffer->flag = 1; cur_error_buffer->flag = 1;
cur_error_buffer->index = 0; cur_error_buffer->index = 0;