mirror of
https://github.com/curl/curl.git
synced 2025-03-25 15:50:32 +08:00
tool_binmode.c: Explicitly ignore the return code of setmode
Fixes code analysis warning C6031: return value ignored: <function> could return unexpected value
This commit is contained in:
parent
8676ce68e3
commit
2ffbd7afac
@ -41,7 +41,7 @@ void set_binmode(FILE *stream)
|
|||||||
# ifdef __HIGHC__
|
# ifdef __HIGHC__
|
||||||
_setmode(stream, O_BINARY);
|
_setmode(stream, O_BINARY);
|
||||||
# else
|
# else
|
||||||
setmode(fileno(stream), O_BINARY);
|
(void)setmode(fileno(stream), O_BINARY);
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
(void)stream;
|
(void)stream;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user