diff options
author | Brad King <brad.king@kitware.com> | 2022-05-16 13:26:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-16 13:26:16 (GMT) |
commit | 1dd74304958a992b722511aa810c8b1bf602aaba (patch) | |
tree | 9687ce8f27819336df645d2c7e7818c57cc8a541 | |
parent | e924d3780b1520fe29776a9bc18912e159206094 (diff) | |
parent | 91987aec24506e87f1978af54690beb4dfdba501 (diff) | |
download | CMake-1dd74304958a992b722511aa810c8b1bf602aaba.zip CMake-1dd74304958a992b722511aa810c8b1bf602aaba.tar.gz CMake-1dd74304958a992b722511aa810c8b1bf602aaba.tar.bz2 |
Merge topic 'test-clang-15'
91987aec24 Tests: Add missing return types to C function prototypes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !7260
-rw-r--r-- | Tests/ExportImport/Import/A/imp_testExe1.c | 2 | ||||
-rw-r--r-- | 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 <stdio.h> -main() +int main(void) { printf("hello, world\n"); + return 0; } |