]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix CMake tests for enforced strict prototypes. 580/head
authorBjörn Esser <besser82@fedoraproject.org>
Tue, 14 Apr 2020 18:42:32 +0000 (20:42 +0200)
committerBjörn Esser <besser82@fedoraproject.org>
Tue, 14 Apr 2020 18:42:32 +0000 (20:42 +0200)
CMakeLists.txt

index 04d21f93bad95efe0c9f08be52c128bb4e1c317d..c645d58a4b2b6dba19e199b32183739039bdbc69 100644 (file)
@@ -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 <sys/types.h>
-       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;
        }