system_error (system_category): To system_category().
[gcc.git] / libstdc++-v3 / src / thread.cc
index ad399254fba149beb5b43f92d77f508967e3e2a3..f28544df91cc4d99f067bf2bd5f819564adad89d 100644 (file)
@@ -62,10 +62,7 @@ namespace std
     int __e = EINVAL;
 
     if (_M_id != id())
-    {
-      void* __r = 0;
-      __e = __gthread_join(_M_id._M_thread, &__r);
-    }
+      __e = __gthread_join(_M_id._M_thread, NULL);
 
     if (__e)
       __throw_system_error(__e);