Browse Source

Fixed noisy warning with Clang

../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)
                       ^~
                       =
tags/v0.2.0^2
Zaheer Chothia Zaheer Chothia 13 years ago
parent
commit
037d995c4d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common_thread.h

+ 1
- 1
common_thread.h View 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()


Loading…
Cancel
Save