summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-14 12:08:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-14 12:08:45 (GMT)
commitae9614a22d5e39882b2a686e8229170a8296212d (patch)
tree3d8aee50fd4a390ddde193dd1d5bc8ce226b9264 /Tests
parent4d9ef146f47c5071dccad340469dbd28ebb17f17 (diff)
parent4150a18910a046907d985c8598d084aff10198d1 (diff)
downloadCMake-ae9614a22d5e39882b2a686e8229170a8296212d.zip
CMake-ae9614a22d5e39882b2a686e8229170a8296212d.tar.gz
CMake-ae9614a22d5e39882b2a686e8229170a8296212d.tar.bz2
Merge topic 'tests-Wstrict-prototypes'
4150a18910 Tests: Fix -Wstrict-prototypes warnings in some C sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4744
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/ObjectLibrary/b.c2
-rw-r--r--Tests/RunCMake/ObjectLibrary/requires.c2
-rw-r--r--Tests/RunCMake/PrecompileHeaders/empty.c2
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)
{
}