Fixed noisy warning with Clang
authorZaheer Chothia <zchothia@student.ethz.ch>
Tue, 19 Jun 2012 20:05:32 +0000 (22:05 +0200)
committerZaheer Chothia <zaheer.chothia@gmail.com>
Wed, 20 Jun 2012 22:17:28 +0000 (00:17 +0200)
../common_thread.h:138:24: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
  if ((blas_cpu_number == 1)
       ~~~~~~~~~~~~~~~~^~~~
../common_thread.h:138:24: note: remove extraneous parentheses around the comparison to silence this warning
  if ((blas_cpu_number == 1)
      ~                ^   ~
../common_thread.h:138:24: note: use '=' to turn this equality comparison into an assignment
  if ((blas_cpu_number == 1)
                       ^~
                       =

common_thread.h

index dc963a6..97e0609 100644 (file)
@@ -135,7 +135,7 @@ static __inline int num_cpu_avail(int level) {
        int openmp_nthreads=0;
 #endif
 
-  if ((blas_cpu_number == 1) 
+  if (blas_cpu_number == 1
 
 #ifdef USE_OPENMP
       || omp_in_parallel()