summaryrefslogtreecommitdiff
path: root/Modules/FindOpenMP.cmake
diff options
context:
space:
mode:
authorIvan Pozdeev <vano@mail.mipt.ru>2018-11-06 21:54:07 +0300
committerBrad King <brad.king@kitware.com>2018-11-07 07:38:54 -0500
commitdb0445f0c860cc561baf3b38f296b7f338385d63 (patch)
treeb12b106cd391a748c3c7e75987c603e1050edb8f /Modules/FindOpenMP.cmake
parent44cc305ac12d58fe476f815b89f42288455e44a9 (diff)
downloadcmake-db0445f0c860cc561baf3b38f296b7f338385d63.tar.gz
FindOpenMP: Fix warnings with -Wstrict-prototypes
With -Wstrict-prototype -Werror, the check would fail
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r--Modules/FindOpenMP.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index df0bbc433d..c7376e3019 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -124,7 +124,7 @@ endfunction()
set(OpenMP_C_CXX_TEST_SOURCE
"
#include <omp.h>
-int main() {
+int main(void) {
#ifdef _OPENMP
omp_get_max_threads();
return 0;
@@ -291,7 +291,7 @@ const char ompver_str[] = { 'I', 'N', 'F', 'O', ':', 'O', 'p', 'e', 'n', 'M',
('0' + ((_OPENMP/10)%10)),
('0' + ((_OPENMP/1)%10)),
']', '\\0' };
-int main()
+int main(void)
{
puts(ompver_str);
return 0;