diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-09-05 14:41:33 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 13:24:42 +0200 |
commit | 1baa1c92220d23a91337e8aa1e174c66f7fd0531 (patch) | |
tree | e46796919bce6bbc5408bbca0b23d5bf7d3d2fc0 /test cases/common/149 recursive linking | |
parent | c6f93b6bf67500c963cdaa33b0500ea1a15232b0 (diff) | |
download | meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.zip meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.tar.gz meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.tar.bz2 |
use '-Werror=unused-parameter' for gcc/clang on project tests and -fimplicit-none on fortran
Fortran: check for undeclared variables by forcing implicit none everywhere
C/C++: check for unused parameters and return types
removed unused variables from test cases
ci: do missing return and unused arg check with Github Actions
Diffstat (limited to 'test cases/common/149 recursive linking')
5 files changed, 5 insertions, 5 deletions
diff --git a/test cases/common/149 recursive linking/3rdorderdeps/main.c.in b/test cases/common/149 recursive linking/3rdorderdeps/main.c.in index 8155f35..f5bc0b4 100644 --- a/test cases/common/149 recursive linking/3rdorderdeps/main.c.in +++ b/test cases/common/149 recursive linking/3rdorderdeps/main.c.in @@ -4,7 +4,7 @@ SYMBOL_IMPORT int get_@LIBTYPE@@DEPENDENCY@dep_value (void); -int main(int argc, char *argv[]) { +int main() { int val; val = get_@LIBTYPE@@DEPENDENCY@dep_value (); diff --git a/test cases/common/149 recursive linking/circular/main.c b/test cases/common/149 recursive linking/circular/main.c index 5f797a5..a419333 100644 --- a/test cases/common/149 recursive linking/circular/main.c +++ b/test cases/common/149 recursive linking/circular/main.c @@ -6,7 +6,7 @@ int get_st1_value (void); int get_st2_value (void); int get_st3_value (void); -int main(int argc, char *argv[]) { +int main() { int val; val = get_st1_value (); diff --git a/test cases/common/149 recursive linking/edge-cases/shstmain.c b/test cases/common/149 recursive linking/edge-cases/shstmain.c index b44c55f..6598c72 100644 --- a/test cases/common/149 recursive linking/edge-cases/shstmain.c +++ b/test cases/common/149 recursive linking/edge-cases/shstmain.c @@ -4,7 +4,7 @@ int get_stshdep_value (void); -int main(int argc, char *argv[]) { +int main() { int val; val = get_stshdep_value (); diff --git a/test cases/common/149 recursive linking/edge-cases/stomain.c b/test cases/common/149 recursive linking/edge-cases/stomain.c index 90208a7..544ece9 100644 --- a/test cases/common/149 recursive linking/edge-cases/stomain.c +++ b/test cases/common/149 recursive linking/edge-cases/stomain.c @@ -4,7 +4,7 @@ int get_stodep_value (void); -int main(int argc, char *argv[]) { +int main() { int val; val = get_stodep_value (); diff --git a/test cases/common/149 recursive linking/main.c b/test cases/common/149 recursive linking/main.c index 0851611..2ddcb88 100644 --- a/test cases/common/149 recursive linking/main.c +++ b/test cases/common/149 recursive linking/main.c @@ -9,7 +9,7 @@ SYMBOL_IMPORT int get_shnodep_value (void); SYMBOL_IMPORT int get_shshdep_value (void); SYMBOL_IMPORT int get_shstdep_value (void); -int main(int argc, char *argv[]) { +int main() { int val; val = get_shnodep_value (); |