Skip to content

Commit

Permalink
Fix CMake tests for enforced strict prototypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Apr 14, 2020
1 parent ab5425a commit 053eaa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 053eaa6

Please sign in to comment.