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:
parent
42cb1b8960
commit
ac8bb1ec43
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user