summaryrefslogtreecommitdiffstats
path: root/Tests/TargetName/executables
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-13 15:07:17 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-13 15:07:17 (GMT)
commit91987aec24506e87f1978af54690beb4dfdba501 (patch)
treee7ca174b7543b9094d28125fdb5682f3f4151b58 /Tests/TargetName/executables
parente00e67cb924495aab72bfc60dec0451a6566d8a2 (diff)
downloadCMake-91987aec24506e87f1978af54690beb4dfdba501.zip
CMake-91987aec24506e87f1978af54690beb4dfdba501.tar.gz
CMake-91987aec24506e87f1978af54690beb4dfdba501.tar.bz2
Tests: Add missing return types to C function prototypes
These were diagnosed by a Clang 15 development version.
Diffstat (limited to 'Tests/TargetName/executables')
-rw-r--r--Tests/TargetName/executables/hello_world.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/TargetName/executables/hello_world.c b/Tests/TargetName/executables/hello_world.c
index 5b6eaf8..71d71f5 100644
--- a/Tests/TargetName/executables/hello_world.c
+++ b/Tests/TargetName/executables/hello_world.c
@@ -1,5 +1,6 @@
#include <stdio.h>
-main()
+int main(void)
{
printf("hello, world\n");
+ return 0;
}