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/LibName | |
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/LibName')
-rw-r--r-- | Tests/LibName/bar.c | 2 | ||||
-rw-r--r-- | Tests/LibName/foo.c | 4 | ||||
-rw-r--r-- | Tests/LibName/foobar.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Tests/LibName/bar.c b/Tests/LibName/bar.c index c6c1e66..b1c5cf2 100644 --- a/Tests/LibName/bar.c +++ b/Tests/LibName/bar.c @@ -2,6 +2,6 @@ __declspec(dllexport) #endif - extern void foo() + extern void foo(void) { } diff --git a/Tests/LibName/foo.c b/Tests/LibName/foo.c index 52e8d89..1bdb58b 100644 --- a/Tests/LibName/foo.c +++ b/Tests/LibName/foo.c @@ -1,11 +1,11 @@ #ifdef _WIN32 __declspec(dllimport) #endif - extern void foo(); + extern void foo(void); #ifdef _WIN32 __declspec(dllexport) #endif - void bar() + void bar(void) { foo(); } diff --git a/Tests/LibName/foobar.c b/Tests/LibName/foobar.c index 2f28d30..fa7d3e9 100644 --- a/Tests/LibName/foobar.c +++ b/Tests/LibName/foobar.c @@ -3,7 +3,7 @@ __declspec(dllimport) #endif extern void bar(); -int main() +int main(void) { bar(); return 0; |