summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-07-15 16:49:25 +0000
committerAlan Conway <aconway@apache.org>2008-07-15 16:49:25 +0000
commit8d5835a2e574d884d78e8fcb5ec4003c75185ee6 (patch)
treeb8226f591b7036e9750b3bbbfbbb952145ed6bd6 /cpp/src
parent78321073bd4e1be53367ded13bc0697c682d010d (diff)
downloadqpid-python-8d5835a2e574d884d78e8fcb5ec4003c75185ee6.tar.gz
Fix "ignoring return value" warning from LockFile.h.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@676963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/sys/posix/LockFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/LockFile.h b/cpp/src/qpid/sys/posix/LockFile.h
index a8fbb678b8..027735e759 100644
--- a/cpp/src/qpid/sys/posix/LockFile.h
+++ b/cpp/src/qpid/sys/posix/LockFile.h
@@ -43,7 +43,7 @@ public:
~LockFile() {
if (fd >= 0) {
- ::lockf(fd, F_ULOCK, 0);
+ (void) ::lockf(fd, F_ULOCK, 0); // Suppress warnings about ignoring return value.
::close(fd);
}
}