From 2ffbd7afacf558af79c9f06f888f94a2699900c7 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sun, 14 Dec 2014 22:31:10 +0100 Subject: tool_binmode.c: Explicitly ignore the return code of setmode Fixes code analysis warning C6031: return value ignored: could return unexpected value --- src/tool_binmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_binmode.c b/src/tool_binmode.c index 92033ac03..6447f480d 100644 --- a/src/tool_binmode.c +++ b/src/tool_binmode.c @@ -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; -- cgit v1.2.3