summaryrefslogtreecommitdiffstats
path: root/Tests/LinkLine
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-25 14:39:15 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-26 13:20:45 (GMT)
commit264dcae5e42b51724983296457c569a3110687a5 (patch)
tree7fe3b5b5e0ece0dcef79cec708415161ba1a8812 /Tests/LinkLine
parent35424aab2e35ae5e4e3762feae26a0c305c73b9d (diff)
downloadCMake-264dcae5e42b51724983296457c569a3110687a5.zip
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.gz
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.bz2
Tests: Fix clang -Wstrict-prototypes warnings
Diffstat (limited to 'Tests/LinkLine')
-rw-r--r--Tests/LinkLine/Exec.c2
-rw-r--r--Tests/LinkLine/One.c4
-rw-r--r--Tests/LinkLine/Two.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/Tests/LinkLine/Exec.c b/Tests/LinkLine/Exec.c
index 807a7a8..11b5650 100644
--- a/Tests/LinkLine/Exec.c
+++ b/Tests/LinkLine/Exec.c
@@ -1,7 +1,7 @@
void OneFunc();
void TwoFunc();
-int main()
+int main(void)
{
OneFunc();
TwoFunc();
diff --git a/Tests/LinkLine/One.c b/Tests/LinkLine/One.c
index 856d0d1..4f3ad63 100644
--- a/Tests/LinkLine/One.c
+++ b/Tests/LinkLine/One.c
@@ -1,6 +1,6 @@
-void TwoFunc();
+void TwoFunc(void);
-void OneFunc()
+void OneFunc(void)
{
static int i = 0;
++i;
diff --git a/Tests/LinkLine/Two.c b/Tests/LinkLine/Two.c
index 5fc212e..ac84367 100644
--- a/Tests/LinkLine/Two.c
+++ b/Tests/LinkLine/Two.c
@@ -1,6 +1,6 @@
-void OneFunc();
+void OneFunc(void);
-void TwoFunc()
+void TwoFunc(void)
{
static int i = 0;
++i;