From 4150a18910a046907d985c8598d084aff10198d1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 May 2020 08:11:59 -0400 Subject: Tests: Fix -Wstrict-prototypes warnings in some C sources Some RunCMake tests fail with this warning due to extra stderr content: warning: this old-style function definition is not preceded by a prototype Convert `foo()` to `foo(void)` in `.c` sources of affected tests. --- Tests/RunCMake/ObjectLibrary/b.c | 2 +- Tests/RunCMake/ObjectLibrary/requires.c | 2 +- Tests/RunCMake/PrecompileHeaders/empty.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/RunCMake/ObjectLibrary/b.c b/Tests/RunCMake/ObjectLibrary/b.c index 220ce03..2c65a2b 100644 --- a/Tests/RunCMake/ObjectLibrary/b.c +++ b/Tests/RunCMake/ObjectLibrary/b.c @@ -5,7 +5,7 @@ #endif extern int a(void); -EXPORT int b() +EXPORT int b(void) { return a(); } diff --git a/Tests/RunCMake/ObjectLibrary/requires.c b/Tests/RunCMake/ObjectLibrary/requires.c index 685632b..a5b429a 100644 --- a/Tests/RunCMake/ObjectLibrary/requires.c +++ b/Tests/RunCMake/ObjectLibrary/requires.c @@ -1,5 +1,5 @@ #ifdef REQUIRED -int required() +int required(void) { return 0; } diff --git a/Tests/RunCMake/PrecompileHeaders/empty.c b/Tests/RunCMake/PrecompileHeaders/empty.c index 30ae1c4..2a51ebc 100644 --- a/Tests/RunCMake/PrecompileHeaders/empty.c +++ b/Tests/RunCMake/PrecompileHeaders/empty.c @@ -1,3 +1,3 @@ -void nothing() +void nothing(void) { } -- cgit v0.12