Commit b3ae6c0f by Steven G. Kargl

error.c: Use flag_fatal_error.

    *error.c: Use flag_fatal_error.
    *invoke.texi:  Remove -Werror from list of options.

From-SVN: r106595
parent 689a90a1
...@@ -621,6 +621,9 @@ gfc_error_now (const char *nocmsgid, ...) ...@@ -621,6 +621,9 @@ gfc_error_now (const char *nocmsgid, ...)
error_char ('\0'); error_char ('\0');
buffer_flag = i; buffer_flag = i;
if (flag_fatal_errors)
exit (1);
} }
...@@ -687,6 +690,9 @@ gfc_error_check (void) ...@@ -687,6 +690,9 @@ gfc_error_check (void)
if (error_buffer.message != NULL) if (error_buffer.message != NULL)
fputs (error_buffer.message, stderr); fputs (error_buffer.message, stderr);
error_buffer.flag = 0; error_buffer.flag = 0;
if (flag_fatal_errors)
exit (1);
} }
return rc; return rc;
......
...@@ -128,8 +128,7 @@ by type. Explanations are in the following sections. ...@@ -128,8 +128,7 @@ by type. Explanations are in the following sections.
-fsyntax-only -pedantic -pedantic-errors @gol -fsyntax-only -pedantic -pedantic-errors @gol
-w -Wall -Waliasing -Wconversion @gol -w -Wall -Waliasing -Wconversion @gol
-Wimplicit-interface -Wnonstd-intrinsics -Wsurprising -Wunderflow @gol -Wimplicit-interface -Wnonstd-intrinsics -Wsurprising -Wunderflow @gol
-Wunused-labels -Wline-truncation @gol -Wunused-labels -Wline-truncation -W}
-Werror -W}
@item Debugging Options @item Debugging Options
@xref{Debugging Options,,Options for Debugging Your Program or GCC}. @xref{Debugging Options,,Options for Debugging Your Program or GCC}.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment