summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/empty.c
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/PrecompileHeaders/empty.c
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/PrecompileHeaders/empty.c')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/empty.c2
1 files changed, 1 insertions, 1 deletions
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)
{
}