aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/CheckCXXCompilerFlag.cmake
diff options
context:
space:
mode:
authorJoakim Karlsson <oakimk@gmail.com>2018-04-24 20:20:33 +0200
committerGuy Harris <guy@alum.mit.edu>2018-04-24 19:19:23 +0000
commit5994c902b452f038df82a7497d1561503c3e1fe0 (patch)
tree8c56e025185e49e6f92d5d882eb4f92b252b94a2 /cmake/modules/CheckCXXCompilerFlag.cmake
parente01fcb7a3cc37cb7474563521f09211b58bfe02b (diff)
cmake: remove warnings -Werror=old-style-definition
see https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15058 Change-Id: I325f476b145a542e987a13bedd1f95a7d8faba94 Reviewed-on: https://code.wireshark.org/review/27121 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'cmake/modules/CheckCXXCompilerFlag.cmake')
-rw-r--r--cmake/modules/CheckCXXCompilerFlag.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/CheckCXXCompilerFlag.cmake b/cmake/modules/CheckCXXCompilerFlag.cmake
index 7204219663..ca87568dbb 100644
--- a/cmake/modules/CheckCXXCompilerFlag.cmake
+++ b/cmake/modules/CheckCXXCompilerFlag.cmake
@@ -32,7 +32,7 @@ macro (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
set(_CheckCXXCompilerFlag_SAVED_${v} "$ENV{${v}}")
set(ENV{${v}} C)
endforeach()
- CHECK_CXX_SOURCE_COMPILES("int main() { return 0; }" ${_RESULT}
+ CHECK_CXX_SOURCE_COMPILES("int main(void) { return 0; }" ${_RESULT}
# Some compilers do not fail with a bad flag
FAIL_REGEX "command line option .* is valid for .* but not for C\\\\+\\\\+" # GNU
FAIL_REGEX "unrecognized .*option" # GNU