https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp#L633
setvbuf(stdout, NULL, _IOLBF, 0); causes this warning to be displayed in my IDE:
Invalid parameter passed to C runtime function.
Replacing _IOLBF by _IONBF resolves it.
I have no idea yet, if we should guard the call by an #ifdef on Windows.