summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-13 12:11:59 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-13 12:11:59 (GMT)
commit4150a18910a046907d985c8598d084aff10198d1 (patch)
tree5e6cfc2289ed06647b2446d19c8aa2ea22cd274b /Tests/RunCMake/ObjectLibrary
parent3bb261b0fedfb2b0e45a5eabc136ff1faea1b914 (diff)
downloadCMake-4150a18910a046907d985c8598d084aff10198d1.zip
CMake-4150a18910a046907d985c8598d084aff10198d1.tar.gz
CMake-4150a18910a046907d985c8598d084aff10198d1.tar.bz2
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.
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary')
-rw-r--r--Tests/RunCMake/ObjectLibrary/b.c2
-rw-r--r--Tests/RunCMake/ObjectLibrary/requires.c2
2 files changed, 2 insertions, 2 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;
}