Browse Source

Merge pull request #3952 from martin-frbg/cleanup3936

Avoid unused variable warning in non-OpenMP builds
tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
dac2d7aef0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common_thread.h

+ 1
- 1
common_thread.h View File

@@ -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…
Cancel
Save