diff options
author | Gordon Sim <gsim@apache.org> | 2009-07-20 10:41:29 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-07-20 10:41:29 +0000 |
commit | 3b15e97c5dffa35bc384e2c78e6447c3e6cd903f (patch) | |
tree | f55331e1323b03b89f0dd2b05649dbfbee6ef52c /cpp/src/qpid/sys/posix/LockFile.cpp | |
parent | 6c20c25cb8fb24aba314044cb7f884f34cc90a52 (diff) | |
download | qpid-python-3b15e97c5dffa35bc384e2c78e6447c3e6cd903f.tar.gz |
QPID-1993: Patch from Chenta Lee to prevent compiler warnings with GCC 4.3.3
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@795752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/LockFile.cpp')
-rwxr-xr-x | cpp/src/qpid/sys/posix/LockFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/LockFile.cpp b/cpp/src/qpid/sys/posix/LockFile.cpp index 9ef9a205b7..4900252984 100755 --- a/cpp/src/qpid/sys/posix/LockFile.cpp +++ b/cpp/src/qpid/sys/posix/LockFile.cpp @@ -56,7 +56,8 @@ LockFile::~LockFile() { if (impl) { int f = impl->fd; if (f >= 0) { - (void) ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value. + int unused_ret; + unused_ret = ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value. ::close(f); impl->fd = -1; } |