aboutsummaryrefslogtreecommitdiff
path: root/odb/details
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-28 19:37:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-28 19:37:48 +0200
commit2d4e22cc551732c890ae2abb15cb9c6eac0f2221 (patch)
tree0aef6f471c572b0b9044a65b977d8d1ea04e2d1f /odb/details
parent18e0b28b0fd6d1b81190d1887f08eb799cafb7b0 (diff)
Get rid of compiler warnings
Diffstat (limited to 'odb/details')
-rw-r--r--odb/details/posix/tls.txx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/details/posix/tls.txx b/odb/details/posix/tls.txx
index 189248b..d6c2459 100644
--- a/odb/details/posix/tls.txx
+++ b/odb/details/posix/tls.txx
@@ -37,7 +37,7 @@ namespace odb
std::auto_ptr<T> p (new T);
- if (e = pthread_setspecific (key_, p.get ()))
+ if ((e = pthread_setspecific (key_, p.get ())))
throw posix_exception (e);
T& r (*p);
@@ -56,7 +56,7 @@ namespace odb
if (void* v = pthread_getspecific (key_))
{
- if (e = pthread_setspecific (key_, 0))
+ if ((e = pthread_setspecific (key_, 0)))
throw posix_exception (e);
delete static_cast<T*> (v);
@@ -110,7 +110,7 @@ namespace odb
if (e != 0 || error_ != 0)
throw posix_exception (e ? e : error_);
- if (e = pthread_setspecific (key_, p))
+ if ((e = pthread_setspecific (key_, p)))
throw posix_exception (e);
}