mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-18 14:58:11 +02:00
Flush stderr when not immediately exiting
When printing warnings on stderr that don't immediately exit pkg-config, flush it so that the messages appear in order with stdout. This is mostly to keep the test suite passing on Windows where output may appear differently than on Linux.
This commit is contained in:
parent
f6212f6b97
commit
5f9116931d
1 changed files with 2 additions and 0 deletions
2
main.c
2
main.c
|
|
@ -190,6 +190,7 @@ output_opt_cb (const char *opt, const char *arg, gpointer data,
|
|||
{
|
||||
fprintf (stderr, "Ignoring incompatible output option \"%s\"\n",
|
||||
opt);
|
||||
fflush (stderr);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
|
@ -322,6 +323,7 @@ process_package_args (const char *cmdline, GList **packages, FILE *log)
|
|||
if (reqs == NULL)
|
||||
{
|
||||
fprintf (stderr, "Must specify package names on the command line\n");
|
||||
fflush (stderr);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue