From 5650c9b76986e33982a4089d3e37de439934adf7 Mon Sep 17 00:00:00 2001 From: Justin Handville Date: Mon, 21 Jun 2021 18:48:04 -0400 Subject: [PATCH] Fixed unused-parameter/strict-prototypes warnings. --- test cases/cmake/25 assembler/main.c | 4 ++-- test cases/cmake/25 assembler/meson.build | 2 +- test cases/cmake/25 assembler/subprojects/cmTest/cmTest.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test cases/cmake/25 assembler/main.c b/test cases/cmake/25 assembler/main.c index c107afd2b..5aef9670e 100644 --- a/test cases/cmake/25 assembler/main.c +++ b/test cases/cmake/25 assembler/main.c @@ -1,9 +1,9 @@ #include #include -int32_t cmTestFunc(); +int32_t cmTestFunc(void); -int main(int argc, char* argv[]) +int main(void) { if (cmTestFunc() > 4200) { diff --git a/test cases/cmake/25 assembler/meson.build b/test cases/cmake/25 assembler/meson.build index 0f700798d..7180356ad 100644 --- a/test cases/cmake/25 assembler/meson.build +++ b/test cases/cmake/25 assembler/meson.build @@ -1,4 +1,4 @@ -project('assembler test', ['c']) +project('assembler test', ['c', 'cpp']) cm = import('cmake') diff --git a/test cases/cmake/25 assembler/subprojects/cmTest/cmTest.c b/test cases/cmake/25 assembler/subprojects/cmTest/cmTest.c index eafdea2e9..e32415c94 100644 --- a/test cases/cmake/25 assembler/subprojects/cmTest/cmTest.c +++ b/test cases/cmake/25 assembler/subprojects/cmTest/cmTest.c @@ -2,7 +2,7 @@ extern const int32_t cmTestArea; -int32_t cmTestFunc() +int32_t cmTestFunc(void) { return cmTestArea; }