From: Björn Esser Date: Tue, 14 Apr 2020 18:42:32 +0000 (+0200) Subject: Fix CMake tests for enforced strict prototypes. X-Git-Tag: json-c-0.14-20200419~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F580%2Fhead;p=thirdparty%2Fjson-c.git Fix CMake tests for enforced strict prototypes. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 04d21f93..c645d58a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,7 +260,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")) /* uClibc toolchains without threading barf when _REENTRANT is defined */ #define _REENTRANT 1 #include - int main () + int main (void) { return 0; } @@ -276,7 +276,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")) list(APPEND CMAKE_REQUIRED_LIBRARIES "-Wl,-Bsymbolic-functions") check_c_source_compiles( [=[ - int main () + int main (void) { return 0; }