summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-27 19:27:21 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-27 19:27:21 (GMT)
commitd43c9152a6a4cbd36f3be73a23c80d818ef2bc50 (patch)
tree1bec1b348628ee9c240aa1770f403dc46528c66b
parentdecfdec63fefe2d4e9628fa247e701bf1b8c4a57 (diff)
parent826bf5c45451900869ca681768d8f291311c75ca (diff)
downloadCMake-d43c9152a6a4cbd36f3be73a23c80d818ef2bc50.zip
CMake-d43c9152a6a4cbd36f3be73a23c80d818ef2bc50.tar.gz
CMake-d43c9152a6a4cbd36f3be73a23c80d818ef2bc50.tar.bz2
Merge branch 'FindOpenMP-avoid-warning-in-check' into release-3.12
Merge-request: !2176
-rw-r--r--Modules/FindOpenMP.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 329ace1..df0bbc4 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -126,7 +126,7 @@ set(OpenMP_C_CXX_TEST_SOURCE
#include <omp.h>
int main() {
#ifdef _OPENMP
- int n = omp_get_max_threads();
+ omp_get_max_threads();
return 0;
#else
breaks_on_purpose