diff options
| author | Ted Ross <tross@apache.org> | 2011-11-22 21:32:48 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-11-22 21:32:48 +0000 |
| commit | 2ef37dfce646f8607b923efb106eba5bd646b653 (patch) | |
| tree | 94ab4cc824d4956553bafeaafecdc689e6ca571c /cpp/src/qpid/sys | |
| parent | 63414f190372f829d587b2b73a73fa5e585fd231 (diff) | |
| download | qpid-python-2ef37dfce646f8607b923efb106eba5bd646b653.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/sys')
| -rwxr-xr-x | cpp/src/qpid/sys/posix/LockFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
