diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2011-06-07 21:33:46 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2011-06-07 21:33:46 +0000 |
| commit | a0f8e1c04d994522de6e59e092fc4c793b9fb913 (patch) | |
| tree | 5e90f3011f801e6b80e4165bd08431ea88498c92 /cpp/src/qpid/sys/posix/LockFile.cpp | |
| parent | 9e3fb797e5c9e413ed1d9744af886cdcb5558bfb (diff) | |
| download | qpid-python-a0f8e1c04d994522de6e59e092fc4c793b9fb913.tar.gz | |
QPID-3284: Eliminated warnings from gcc 4.6 compiler
- Removed a bunch of variables set but not further used.
- Rejigged some asserts which would now have unused vars
if compiler -DNDEBUG
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133166 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, 1 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/posix/LockFile.cpp b/cpp/src/qpid/sys/posix/LockFile.cpp index 1862ff6ac9..f5a6c292cb 100755 --- a/cpp/src/qpid/sys/posix/LockFile.cpp +++ b/cpp/src/qpid/sys/posix/LockFile.cpp @@ -58,8 +58,7 @@ LockFile::~LockFile() { if (impl) { int f = impl->fd; if (f >= 0) { - int unused_ret; - unused_ret = ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value. + (void) ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value. ::close(f); impl->fd = -1; } |
