Skip to content

Commit

Permalink
tool_binmode.c: Explicitly ignore the return code of setmode
Browse files Browse the repository at this point in the history
Fixes code analysis warning C6031:
return value ignored: <function> could return unexpected value
  • Loading branch information
mback2k committed Dec 14, 2014
1 parent 8676ce6 commit 2ffbd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool_binmode.c
Expand Up @@ -41,7 +41,7 @@ void set_binmode(FILE *stream)
# ifdef __HIGHC__
_setmode(stream, O_BINARY);
# else
setmode(fileno(stream), O_BINARY);
(void)setmode(fileno(stream), O_BINARY);
# endif
#else
(void)stream;
Expand Down

0 comments on commit 2ffbd7a

Please sign in to comment.