ccanlint: fix spurious warning errors.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 5 Oct 2011 03:40:29 +0000 (14:10 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 5 Oct 2011 03:40:29 +0000 (14:10 +1030)
commit0959991a0cae77bd404dee266aaf0667e51a459e
tree1ecc80fab0d96f3486005bf0d2caa006677a779f
parent453fe9b4bb249a6b7e22e4b6c9cebbb881a8733a
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.
tools/ccanlint/async.c