From 037d995c4d8c2c5281d9141ce2905f44cc908ac2 Mon Sep 17 00:00:00 2001 From: Zaheer Chothia Date: Tue, 19 Jun 2012 22:05:32 +0200 Subject: [PATCH] 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) ^~ = --- common_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_thread.h b/common_thread.h index dc963a635..97e060976 100644 --- a/common_thread.h +++ b/common_thread.h @@ -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()