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/RuntimePath | |
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/RuntimePath')
-rw-r--r-- | Tests/RuntimePath/bar1.c | 4 | ||||
-rw-r--r-- | Tests/RuntimePath/bar2.c | 4 | ||||
-rw-r--r-- | Tests/RuntimePath/foo1.c | 2 | ||||
-rw-r--r-- | Tests/RuntimePath/foo2.c | 2 | ||||
-rw-r--r-- | Tests/RuntimePath/main.c | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/Tests/RuntimePath/bar1.c b/Tests/RuntimePath/bar1.c index 5dc5ec9..11b3a74 100644 --- a/Tests/RuntimePath/bar1.c +++ b/Tests/RuntimePath/bar1.c @@ -1,5 +1,5 @@ -extern int foo1(); -int bar1() +extern int foo1(void); +int bar1(void) { return foo1(); } diff --git a/Tests/RuntimePath/bar2.c b/Tests/RuntimePath/bar2.c index 9035489..a117f6f 100644 --- a/Tests/RuntimePath/bar2.c +++ b/Tests/RuntimePath/bar2.c @@ -1,5 +1,5 @@ -extern int foo2(); -int bar2() +extern int foo2(void); +int bar2(void) { return foo2(); } diff --git a/Tests/RuntimePath/foo1.c b/Tests/RuntimePath/foo1.c index dfcb0b7..14370ac 100644 --- a/Tests/RuntimePath/foo1.c +++ b/Tests/RuntimePath/foo1.c @@ -1,4 +1,4 @@ -int foo1() +int foo1(void) { return 0; } diff --git a/Tests/RuntimePath/foo2.c b/Tests/RuntimePath/foo2.c index 12a3e77..a105df9 100644 --- a/Tests/RuntimePath/foo2.c +++ b/Tests/RuntimePath/foo2.c @@ -1,4 +1,4 @@ -int foo2() +int foo2(void) { return 0; } diff --git a/Tests/RuntimePath/main.c b/Tests/RuntimePath/main.c index c71ee06..f25b493 100644 --- a/Tests/RuntimePath/main.c +++ b/Tests/RuntimePath/main.c @@ -1,5 +1,5 @@ -extern int bar1(); -int main() +extern int bar1(void); +int main(void) { return bar1(); } |