Skip to content

Commit 077c36b

Browse files
committed
Add else clause to prevent some compiler warnings
1 parent efe5fe6 commit 077c36b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RcppArmadillo.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,7 @@ int armadillo_get_number_of_omp_threads() {
111111
void armadillo_set_number_of_omp_threads(int n) {
112112
#ifdef _OPENMP
113113
omp_set_num_threads(n);
114+
#else
115+
(void)(n); // prevent unused variable warning
114116
#endif
115117
}

0 commit comments

Comments
 (0)