summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-08 12:32:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-08 12:32:15 (GMT)
commit89845851a74d3dd47275803848593c2cd27e9325 (patch)
treeeb51728de62854cf95b3d6bb013d1abfac7109c8 /Tests
parentfc3f932e3c9c6d897905bb99fdf1a2edc721b168 (diff)
parent075ed33750bf209680dc4a603c7314d2b94a63c8 (diff)
downloadCMake-89845851a74d3dd47275803848593c2cd27e9325.zip
CMake-89845851a74d3dd47275803848593c2cd27e9325.tar.gz
CMake-89845851a74d3dd47275803848593c2cd27e9325.tar.bz2
Merge topic 'MissingVoid'
075ed33750 Tests: Fix pedantic warning about missing void in C function declaration Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4984
Diffstat (limited to 'Tests')
-rw-r--r--Tests/XCTest/StaticLibExample/StaticLibExample.c2
-rw-r--r--Tests/XCTest/StaticLibExample/StaticLibExample.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/XCTest/StaticLibExample/StaticLibExample.c b/Tests/XCTest/StaticLibExample/StaticLibExample.c
index b198f80..8d16eb5 100644
--- a/Tests/XCTest/StaticLibExample/StaticLibExample.c
+++ b/Tests/XCTest/StaticLibExample/StaticLibExample.c
@@ -1,6 +1,6 @@
#include "StaticLibExample.h"
-int FourtyFour()
+int FourtyFour(void)
{
return 44;
}
diff --git a/Tests/XCTest/StaticLibExample/StaticLibExample.h b/Tests/XCTest/StaticLibExample/StaticLibExample.h
index 147a909..88695b1 100644
--- a/Tests/XCTest/StaticLibExample/StaticLibExample.h
+++ b/Tests/XCTest/StaticLibExample/StaticLibExample.h
@@ -1 +1 @@
-int FourtyFour();
+int FourtyFour(void);