summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-05-10 14:06:35 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-05-10 14:06:50 (GMT)
commitbed14d734db769e4a8b6cdff46be0281a845c1ea (patch)
tree8735f777e7aac2baeb049fff90d691697a24c613 /Modules
parent2e5b40f581c9c58a92d6f166e6ca28e8a3cc3563 (diff)
parentd5075fd10f964064dbeff666e7632bcc33c40629 (diff)
downloadCMake-bed14d734db769e4a8b6cdff46be0281a845c1ea.zip
CMake-bed14d734db769e4a8b6cdff46be0281a845c1ea.tar.gz
CMake-bed14d734db769e4a8b6cdff46be0281a845c1ea.tar.bz2
Merge topic 'CheckIPOSupported-C-prototypes'
d5075fd10f CheckIPOSupported: Fix -Wstrict-prototypes warnings in check for C Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9502
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckIPOSupported/foo.c2
-rw-r--r--Modules/CheckIPOSupported/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckIPOSupported/foo.c b/Modules/CheckIPOSupported/foo.c
index 1e56597..6a64a99 100644
--- a/Modules/CheckIPOSupported/foo.c
+++ b/Modules/CheckIPOSupported/foo.c
@@ -1,4 +1,4 @@
-int foo()
+int foo(void)
{
return 0x42;
}
diff --git a/Modules/CheckIPOSupported/main.c b/Modules/CheckIPOSupported/main.c
index 8d2ab01..db0956c 100644
--- a/Modules/CheckIPOSupported/main.c
+++ b/Modules/CheckIPOSupported/main.c
@@ -1,4 +1,4 @@
-int foo();
+int foo(void);
int main(void)
{