Merge pull request #3952 from martin-frbg/cleanup3936
Avoid unused variable warning in non-OpenMP builds
This commit is contained in:
commit
dac2d7aef0
|
@ -138,9 +138,9 @@ typedef struct blas_queue {
|
||||||
extern int blas_server_avail;
|
extern int blas_server_avail;
|
||||||
|
|
||||||
static __inline int num_cpu_avail(int level) {
|
static __inline int num_cpu_avail(int level) {
|
||||||
int openmp_nthreads;
|
|
||||||
|
|
||||||
#ifdef USE_OPENMP
|
#ifdef USE_OPENMP
|
||||||
|
int openmp_nthreads;
|
||||||
if (blas_num_threads_set == 0)
|
if (blas_num_threads_set == 0)
|
||||||
openmp_nthreads=omp_get_max_threads();
|
openmp_nthreads=omp_get_max_threads();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue