]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid warning.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 07:54:20 +0000 (07:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 07:54:20 +0000 (07:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@6031 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/thread_management.cc

index fc6d03486a4e3b36deba753747e27827626e831f..c198e19b8c452c479a4ff73f6c2e67f095715868 100644 (file)
@@ -54,22 +54,27 @@ namespace Threads
   };
   
 
+#ifndef DEAL_II_USE_MT_POSIX_NO_BARRIERS    
   PosixThreadBarrier::PosixThreadBarrier (const unsigned int  count,
                                          const char         *,
                                          void               *)
   {
-#ifndef DEAL_II_USE_MT_POSIX_NO_BARRIERS    
     pthread_barrier_init (&barrier, 0, count);
+  };
+
 #else
-                                    // calm down warning, then error out
-    (void *)(&count);
+
+  PosixThreadBarrier::PosixThreadBarrier (const unsigned int  ,
+                                         const char         *,
+                                         void               *)
+  {
     AssertThrow (false,
                 ExcMessage ("Your local POSIX installation does not support\n"
                             "POSIX barriers. You will not be able to use\n"
                             "this class, but the rest of the threading\n"
                             "functionality is available."));
-#endif
   };
+#endif
 
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.