From 91987aec24506e87f1978af54690beb4dfdba501 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 May 2022 11:07:17 -0400 Subject: Tests: Add missing return types to C function prototypes These were diagnosed by a Clang 15 development version. --- Tests/ExportImport/Import/A/imp_testExe1.c | 2 +- Tests/TargetName/executables/hello_world.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/ExportImport/Import/A/imp_testExe1.c b/Tests/ExportImport/Import/A/imp_testExe1.c index 7490a80..d3b0e9e 100644 --- a/Tests/ExportImport/Import/A/imp_testExe1.c +++ b/Tests/ExportImport/Import/A/imp_testExe1.c @@ -19,7 +19,7 @@ extern int testStaticLibPlugin(void); #else # define testLib4libcfg testLib4libopt #endif -extern testLib4libcfg(void); +extern int testLib4libcfg(void); int main() { 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 -main() +int main(void) { printf("hello, world\n"); + return 0; } -- cgit v0.12