From: Yann Collet Date: Sun, 25 Jan 2015 14:50:24 +0000 (+0100) Subject: Removed minor warnings under minGW X-Git-Tag: v0.1.0~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1e6f7d0b1ec75750d0249b47db6db9033c27021;p=thirdparty%2Fzstd.git Removed minor warnings under minGW --- diff --git a/programs/fileio.c b/programs/fileio.c index 83216e8be..453269d7b 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -63,7 +63,7 @@ # include /* _O_BINARY */ # include /* _setmode, _isatty */ # ifdef __MINGW32__ - int _fileno(FILE *stream); /* MINGW somehow forgets to include this windows declaration into */ + /* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into */ # endif # define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY) # define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream)) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 9c4784599..5876f557c 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -54,7 +54,7 @@ # include // _O_BINARY # include // _setmode, _isatty # ifdef __MINGW32__ - int _fileno(FILE *stream); // MINGW somehow forgets to include this windows declaration into + /* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into */ # endif # define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY) # define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream)) @@ -65,9 +65,9 @@ #endif -//**************************** -// Constants -//**************************** +/************************************** +* Constants +**************************************/ #define COMPRESSOR_NAME "zstd command line interface" #ifndef ZSTD_VERSION # define ZSTD_VERSION "v0.0.1"