Skip to content

setvbuf() call in init causes a warning/error on Windows #4884

@Diapolo

Description

@Diapolo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions