diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 08:31:41 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 08:31:41 (GMT) |
commit | dfabec2d1817e08fda70c19ed9248819b6a1fb22 (patch) | |
tree | e6290359efd5d2e424b05f25a19b6ed3cee6e872 /programs/lz4io.c | |
parent | 4abc86e0bd9dd168a18713b7c753348031dbb872 (diff) | |
download | lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.zip lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.tar.gz lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.tar.bz2 |
Fixed a few minor visual analyzer warnings
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index be2dc5d..14bbf0e 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -65,7 +65,7 @@ # include <fcntl.h> /* _O_BINARY */ # include <io.h> /* _setmode, _fileno, _get_osfhandle */ # if !defined(__DJGPP__) -# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY) +# define SET_BINARY_MODE(file) { int unused=_setmode(_fileno(file), _O_BINARY); (void)unused; } # include <Windows.h> /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */ # define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPARSE, 0, 0, 0, 0, &dw, 0); } # if defined(_MSC_VER) && (_MSC_VER >= 1400) /* Avoid MSVC fseek()'s 2GiB barrier */ |