From 3b15e97c5dffa35bc384e2c78e6447c3e6cd903f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 20 Jul 2009 10:41:29 +0000 Subject: 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 --- cpp/src/qpid/sys/posix/LockFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/sys') 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; } -- cgit v1.2.1