summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-29 12:56:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-06-29 12:57:10 (GMT)
commitda1f5336962b5f34dddd95c11ca7f774cea7d99e (patch)
tree52b753698af160af6f8c500f5e407dc2b6d4a576 /Modules
parent08813b17a1500830f166d97ffed21c700de80bbb (diff)
parent826bf5c45451900869ca681768d8f291311c75ca (diff)
downloadCMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.zip
CMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.tar.gz
CMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.tar.bz2
Merge topic 'FindOpenMP-avoid-warning-in-check'
826bf5c454 FindOpenMP: Avoid warning in check code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Henry Schreiner <henryschreineriii@gmail.com> Merge-request: !2176
Diffstat (limited to 'Modules')
-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