diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-27 16:42:11 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-27 16:42:11 +0200 |
commit | 5574d64e03ad3a3d6e00e4b0d3e81c7b5529ec95 (patch) | |
tree | 723ed0eaf8dcb72474850076e67f46d8bfae1e32 /src/common | |
parent | Use PACKAGE_URL instead of custom PACKAGE_HOMEPAGE. (diff) | |
download | xz-5574d64e03ad3a3d6e00e4b0d3e81c7b5529ec95.tar.xz |
Silence two compiler warnings on DOS-like systems.
Diffstat (limited to '')
-rw-r--r-- | src/common/tuklib_open_stdxxx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/tuklib_open_stdxxx.c b/src/common/tuklib_open_stdxxx.c index 70c8e73d..08bc60d8 100644 --- a/src/common/tuklib_open_stdxxx.c +++ b/src/common/tuklib_open_stdxxx.c @@ -23,7 +23,11 @@ extern void tuklib_open_stdxxx(int err_status) { -#ifndef TUKLIB_DOSLIKE +#ifdef TUKLIB_DOSLIKE + // Do nothing, just silence warnings. + (void)err_status; + +#else for (int i = 0; i <= 2; ++i) { // We use fcntl() to check if the file descriptor is open. if (fcntl(i, F_GETFD) == -1 && errno == EBADF) { |