aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/32 sizeof
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-09-05 14:41:33 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-17 13:24:42 +0200
commit1baa1c92220d23a91337e8aa1e174c66f7fd0531 (patch)
treee46796919bce6bbc5408bbca0b23d5bf7d3d2fc0 /test cases/common/32 sizeof
parentc6f93b6bf67500c963cdaa33b0500ea1a15232b0 (diff)
downloadmeson-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/32 sizeof')
-rw-r--r--test cases/common/32 sizeof/prog.c.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/32 sizeof/prog.c.in b/test cases/common/32 sizeof/prog.c.in
index 85b1229..99432f7 100644
--- a/test cases/common/32 sizeof/prog.c.in
+++ b/test cases/common/32 sizeof/prog.c.in
@@ -2,7 +2,7 @@
#include <stdio.h>
#include <wchar.h>
-int main(int argc, char **argv) {
+int main() {
if(INTSIZE != sizeof(int)) {
fprintf(stderr, "Mismatch: detected int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int));
return 1;