From 855ed72a8d8fbe7fe2ae3533d753ccd4eaec978c Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 22 Nov 2011 21:32:48 +0000 Subject: NO-JIRA - Fixed the handling of functions with ignored return values. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1205183 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/posix/LockFile.cpp | 2 +- 1 file changed, 1 insertion(+), 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 f5a6c292cb..c1f1c37b47 100755 --- a/cpp/src/qpid/sys/posix/LockFile.cpp +++ b/cpp/src/qpid/sys/posix/LockFile.cpp @@ -58,7 +58,7 @@ LockFile::~LockFile() { if (impl) { int f = impl->fd; if (f >= 0) { - (void) ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value. + if(::lockf(f, F_ULOCK, 0)) {} // Suppress warnings about ignoring return value. ::close(f); impl->fd = -1; } -- cgit v1.2.1