From 8d5835a2e574d884d78e8fcb5ec4003c75185ee6 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 15 Jul 2008 16:49:25 +0000 Subject: 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 --- cpp/src/qpid/sys/posix/LockFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') 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); } } -- cgit v1.2.1