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) ^~ =
This commit is contained in:
parent
b8b922d334
commit
037d995c4d
|
@ -135,7 +135,7 @@ static __inline int num_cpu_avail(int level) {
|
||||||
int openmp_nthreads=0;
|
int openmp_nthreads=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((blas_cpu_number == 1)
|
if (blas_cpu_number == 1
|
||||||
|
|
||||||
#ifdef USE_OPENMP
|
#ifdef USE_OPENMP
|
||||||
|| omp_in_parallel()
|
|| omp_in_parallel()
|
||||||
|
|
Loading…
Reference in New Issue