From 2d4e22cc551732c890ae2abb15cb9c6eac0f2221 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Sep 2010 19:37:48 +0200 Subject: Get rid of compiler warnings --- odb/details/posix/tls.txx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odb/details') 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 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 (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); } -- cgit v1.1