summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/CountDownLatch.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-12-27 23:20:00 +0100
committerJose <jose@zeroc.com>2012-12-27 23:20:00 +0100
commit05fe914f6f78c8f7bb3f4530d68b2926bf2cea51 (patch)
treef171ab75496f6dc5e5b2cec5e92f8a46049e9a1d /cpp/src/IceUtil/CountDownLatch.cpp
parentFixed (ICE-5161) - Strange xxx ruby library names (diff)
downloadice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.tar.bz2
ice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.tar.xz
ice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.zip
Fixed warnings related to ICE-5157
Diffstat (limited to 'cpp/src/IceUtil/CountDownLatch.cpp')
-rw-r--r--cpp/src/IceUtil/CountDownLatch.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/CountDownLatch.cpp b/cpp/src/IceUtil/CountDownLatch.cpp
index 66c0a39c1e6..6102df82663 100644
--- a/cpp/src/IceUtil/CountDownLatch.cpp
+++ b/cpp/src/IceUtil/CountDownLatch.cpp
@@ -48,11 +48,16 @@ IceUtilInternal::CountDownLatch::~CountDownLatch()
#ifdef _WIN32
CloseHandle(_event);
#else
+# ifndef NDEBUG
int rc = 0;
rc = pthread_mutex_destroy(&_mutex);
assert(rc == 0);
rc = pthread_cond_destroy(&_cond);
assert(rc == 0);
+# else
+ pthread_mutex_destroy(&_mutex);
+ pthread_cond_destroy(&_cond);
+# endif
#endif
}