ports/devel/ice/files/patch-cpp-src-IceUtil-Cond.cpp
Martin Wilke ccecfeab22 - Fix build with gcc 4.7
- Add support for clang

PR:		165702
Submitted by:	Michael Gmelin <freebsd@grem.de> (maintainer)
Feature safe:	yes
2012-03-24 15:57:39 +00:00

15 lines
339 B
C++

--- cpp.orig/src/IceUtil/Cond.cpp 2011-06-15 21:43:59.000000000 +0200
+++ cpp/src/IceUtil/Cond.cpp 2012-03-04 20:14:53.000000000 +0100
@@ -330,8 +330,11 @@
IceUtil::Cond::~Cond()
{
+#ifndef NDEBUG
int rc = 0;
- rc = pthread_cond_destroy(&_cond);
+ rc =
+#endif
+ pthread_cond_destroy(&_cond);
assert(rc == 0);
}