]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_binmode.c: Explicitly ignore the return code of setmode
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 14 Dec 2014 21:31:10 +0000 (22:31 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 14 Dec 2014 21:31:10 +0000 (22:31 +0100)
Fixes code analysis warning C6031:
return value ignored: <function> could return unexpected value

src/tool_binmode.c

index 92033ac03c065c372d701652f6f829aa3b14df94..6447f480d9d2f59be3e168a216f85e0356d67536 100644 (file)
@@ -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;