mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
diagnostics: use flush, not fflush
* src/complain.c: here.
This commit is contained in:
@@ -424,12 +424,12 @@ error_message (const location *loc, warnings flags, severity sever,
|
|||||||
if (l < 2 || message[l - 2] != ':' || message[l - 1] != ' ')
|
if (l < 2 || message[l - 2] != ':' || message[l - 1] != ' ')
|
||||||
{
|
{
|
||||||
putc ('\n', stderr);
|
putc ('\n', stderr);
|
||||||
fflush (stderr);
|
flush (stderr);
|
||||||
if (loc && feature_flag & feature_caret && !(flags & no_caret))
|
if (loc && feature_flag & feature_caret && !(flags & no_caret))
|
||||||
location_caret (*loc, style, stderr);
|
location_caret (*loc, style, stderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fflush (stderr);
|
flush (stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Raise a complaint (fatal error, error or just warning). */
|
/** Raise a complaint (fatal error, error or just warning). */
|
||||||
|
|||||||
Reference in New Issue
Block a user