Skip to content

Commit dac2d7a

Browse files
authored
Merge pull request #3952 from martin-frbg/cleanup3936
Avoid unused variable warning in non-OpenMP builds
2 parents 2b77f28 + 743ae5a commit dac2d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common_thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ typedef struct blas_queue {
138138
extern int blas_server_avail;
139139

140140
static __inline int num_cpu_avail(int level) {
141-
int openmp_nthreads;
142141

143142
#ifdef USE_OPENMP
143+
int openmp_nthreads;
144144
if (blas_num_threads_set == 0)
145145
openmp_nthreads=omp_get_max_threads();
146146
else

0 commit comments

Comments
 (0)