Follow up to
r15-4268-g459c6018d2308d, which removed dead code,
but missing that terminal_width was only set but not used.
gcc/fortran/ChangeLog:
* error.cc (terminal_width, gfc_get_terminal_width): Remove.
(gfc_error_init_1): Do not call one to set the other.
static bool warnings_not_errors = false;
-static int terminal_width;
-
/* True if the error/warnings should be buffered. */
static bool buffered_p;
}
-/* Determine terminal width (for trimming source lines in output). */
-
-static int
-gfc_get_terminal_width (void)
-{
- return isatty (STDERR_FILENO) ? get_terminal_width () : INT_MAX;
-}
-
-
/* Per-file error initialization. */
void
gfc_error_init_1 (void)
{
- terminal_width = gfc_get_terminal_width ();
gfc_buffer_error (false);
}