diff options
author | Brad King <brad.king@kitware.com> | 2023-10-25 14:39:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-26 13:20:45 (GMT) |
commit | 264dcae5e42b51724983296457c569a3110687a5 (patch) | |
tree | 7fe3b5b5e0ece0dcef79cec708415161ba1a8812 /Tests/RunCMake/try_run | |
parent | 35424aab2e35ae5e4e3762feae26a0c305c73b9d (diff) | |
download | CMake-264dcae5e42b51724983296457c569a3110687a5.zip CMake-264dcae5e42b51724983296457c569a3110687a5.tar.gz CMake-264dcae5e42b51724983296457c569a3110687a5.tar.bz2 |
Tests: Fix clang -Wstrict-prototypes warnings
Diffstat (limited to 'Tests/RunCMake/try_run')
-rw-r--r-- | Tests/RunCMake/try_run/ConfigureLog-test.c | 2 | ||||
-rw-r--r-- | Tests/RunCMake/try_run/lib.c | 2 | ||||
-rw-r--r-- | Tests/RunCMake/try_run/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/try_run/ConfigureLog-test.c b/Tests/RunCMake/try_run/ConfigureLog-test.c index 6a8f125..465069d 100644 --- a/Tests/RunCMake/try_run/ConfigureLog-test.c +++ b/Tests/RunCMake/try_run/ConfigureLog-test.c @@ -1,6 +1,6 @@ #include <stdio.h> -int main() +int main(void) { fprintf(stderr, "Output, with backslash '\\', on stderr!\n"); fflush(stderr); /* make output deterministic even if stderr is buffered */ diff --git a/Tests/RunCMake/try_run/lib.c b/Tests/RunCMake/try_run/lib.c index b00c576..ce64a13 100644 --- a/Tests/RunCMake/try_run/lib.c +++ b/Tests/RunCMake/try_run/lib.c @@ -1,4 +1,4 @@ -void func() +void func(void) { } diff --git a/Tests/RunCMake/try_run/main.c b/Tests/RunCMake/try_run/main.c index 2128ead..6b1e682 100644 --- a/Tests/RunCMake/try_run/main.c +++ b/Tests/RunCMake/try_run/main.c @@ -1,4 +1,4 @@ -extern void func(); +extern void func(void); int main(void) { |