Commit 0959991a authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix spurious warning errors.

Because we fork children to do compilations, and we use stdio, we need
to flush stdout before the fork otherwise the child will flush
afterwards.  The compile tests interpret this output as a compiler
warning.

This shows up if you redirect ccanlint output to a file.
parent 453fe9b4
......@@ -51,6 +51,7 @@ static void run_more(void)
if (!c)
break;
fflush(stdout);
if (pipe(p) != 0)
err(1, "Pipe failed");
c->pid = fork();
......
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