diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 16:09:30 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 17:16:41 +0200 |
| commit | f6ad5d139869db1db130e675275d25fff08dc09f (patch) | |
| tree | ca7b4362259213d29c2e6b8af0298e65cfa9a786 /test cases | |
| parent | bf800101c2fce4ac6cd7be2f6e0564c6e297acf3 (diff) | |
| download | meson-f6ad5d139869db1db130e675275d25fff08dc09f.tar.gz | |
Make all C main functions without arguments have "void" in arg list.
Diffstat (limited to 'test cases')
142 files changed, 146 insertions, 146 deletions
diff --git a/test cases/common/1 trivial/trivial.c b/test cases/common/1 trivial/trivial.c index 38b58cc54..96612d48b 100644 --- a/test cases/common/1 trivial/trivial.c +++ b/test cases/common/1 trivial/trivial.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("Trivial test is working.\n"); return 0; } diff --git a/test cases/common/100 stringdef/stringdef.c b/test cases/common/100 stringdef/stringdef.c index f1f1ca483..17e29fdc1 100644 --- a/test cases/common/100 stringdef/stringdef.c +++ b/test cases/common/100 stringdef/stringdef.c @@ -1,7 +1,7 @@ #include<stdio.h> #include<string.h> -int main() { +int main(void) { if(strcmp(FOO, "bar")) { printf("FOO is misquoted: %s\n", FOO); return 1; diff --git a/test cases/common/102 subproject subdir/prog.c b/test cases/common/102 subproject subdir/prog.c index cf6f42548..9035ff114 100644 --- a/test cases/common/102 subproject subdir/prog.c +++ b/test cases/common/102 subproject subdir/prog.c @@ -1,5 +1,5 @@ #include <sub.h> -int main() { +int main(void) { return sub(); } diff --git a/test cases/common/103 postconf/prog.c b/test cases/common/103 postconf/prog.c index 9315f86de..85a25a300 100644 --- a/test cases/common/103 postconf/prog.c +++ b/test cases/common/103 postconf/prog.c @@ -1,5 +1,5 @@ #include"generated.h" -int main() { +int main(void) { return THE_NUMBER != 9; } diff --git a/test cases/common/104 postconf with args/prog.c b/test cases/common/104 postconf with args/prog.c index 6458543c1..5db9d17df 100644 --- a/test cases/common/104 postconf with args/prog.c +++ b/test cases/common/104 postconf with args/prog.c @@ -1,5 +1,5 @@ #include"generated.h" -int main() { +int main(void) { return THE_NUMBER != 9 || THE_ARG1 != 5 || THE_ARG2 != 33; } diff --git a/test cases/common/106 extract same name/main.c b/test cases/common/106 extract same name/main.c index 79e70a29e..e917d2487 100644 --- a/test cases/common/106 extract same name/main.c +++ b/test cases/common/106 extract same name/main.c @@ -1,6 +1,6 @@ int func1(); int func2(); -int main() { +int main(void) { return !(func1() == 23 && func2() == 42); } diff --git a/test cases/common/109 generatorcustom/main.c b/test cases/common/109 generatorcustom/main.c index 23f894f20..4b6857d52 100644 --- a/test cases/common/109 generatorcustom/main.c +++ b/test cases/common/109 generatorcustom/main.c @@ -2,6 +2,6 @@ #include"alltogether.h" -int main() { +int main(void) { return 0; } diff --git a/test cases/common/11 subdir/subdir/prog.c b/test cases/common/11 subdir/subdir/prog.c index 76e819701..78f2de106 100644 --- a/test cases/common/11 subdir/subdir/prog.c +++ b/test cases/common/11 subdir/subdir/prog.c @@ -1 +1 @@ -int main() { return 0; } +int main(void) { return 0; } diff --git a/test cases/common/111 spaces backslash/comparer-end-notstring.c b/test cases/common/111 spaces backslash/comparer-end-notstring.c index a50ad6d1c..8b8190ff8 100644 --- a/test cases/common/111 spaces backslash/comparer-end-notstring.c +++ b/test cases/common/111 spaces backslash/comparer-end-notstring.c @@ -10,7 +10,7 @@ #define COMPARE_WITH "foo\\bar\\" /* This is the literal `foo\bar\` */ -int main() { +int main(void) { if(strcmp(QUOTE(DEF_WITH_BACKSLASH), COMPARE_WITH)) { printf("Arg string is quoted incorrectly: %s instead of %s\n", QUOTE(DEF_WITH_BACKSLASH), COMPARE_WITH); diff --git a/test cases/common/111 spaces backslash/comparer-end.c b/test cases/common/111 spaces backslash/comparer-end.c index 60c6bdb54..8cff1b1b1 100644 --- a/test cases/common/111 spaces backslash/comparer-end.c +++ b/test cases/common/111 spaces backslash/comparer-end.c @@ -6,7 +6,7 @@ #define COMPARE_WITH "foo\\bar\\" /* This is `foo\bar\` */ -int main () { +int main(void) { if (strcmp (DEF_WITH_BACKSLASH, COMPARE_WITH)) { printf ("Arg string is quoted incorrectly: %s vs %s\n", DEF_WITH_BACKSLASH, COMPARE_WITH); diff --git a/test cases/common/111 spaces backslash/comparer.c b/test cases/common/111 spaces backslash/comparer.c index e705ff378..7e3033e1e 100644 --- a/test cases/common/111 spaces backslash/comparer.c +++ b/test cases/common/111 spaces backslash/comparer.c @@ -6,7 +6,7 @@ #define COMPARE_WITH "foo\\bar" /* This is the literal `foo\bar` */ -int main () { +int main(void) { if (strcmp (DEF_WITH_BACKSLASH, COMPARE_WITH)) { printf ("Arg string is quoted incorrectly: %s instead of %s\n", DEF_WITH_BACKSLASH, COMPARE_WITH); diff --git a/test cases/common/116 subdir subproject/prog/prog.c b/test cases/common/116 subdir subproject/prog/prog.c index cf6f42548..9035ff114 100644 --- a/test cases/common/116 subdir subproject/prog/prog.c +++ b/test cases/common/116 subdir subproject/prog/prog.c @@ -1,5 +1,5 @@ #include <sub.h> -int main() { +int main(void) { return sub(); } diff --git a/test cases/common/119 subproject project arguments/exe.c b/test cases/common/119 subproject project arguments/exe.c index b33884618..e8f2271a3 100644 --- a/test cases/common/119 subproject project arguments/exe.c +++ b/test cases/common/119 subproject project arguments/exe.c @@ -22,6 +22,6 @@ #error #endif -int main() { +int main(void) { return 0; } diff --git a/test cases/common/119 subproject project arguments/subprojects/subexe/subexe.c b/test cases/common/119 subproject project arguments/subprojects/subexe/subexe.c index 62cc965c3..bd5316db9 100644 --- a/test cases/common/119 subproject project arguments/subprojects/subexe/subexe.c +++ b/test cases/common/119 subproject project arguments/subprojects/subexe/subexe.c @@ -22,6 +22,6 @@ #error #endif -int main() { +int main(void) { return 0; } diff --git a/test cases/common/120 test skip/test_skip.c b/test cases/common/120 test skip/test_skip.c index 24ea97b16..59c134bb9 100644 --- a/test cases/common/120 test skip/test_skip.c +++ b/test cases/common/120 test skip/test_skip.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 77; } diff --git a/test cases/common/122 llvm ir and assembly/main.c b/test cases/common/122 llvm ir and assembly/main.c index 887c64ac4..35e8ed623 100644 --- a/test cases/common/122 llvm ir and assembly/main.c +++ b/test cases/common/122 llvm ir and assembly/main.c @@ -2,7 +2,7 @@ unsigned square_unsigned (unsigned a); -int main () +int main(void) { unsigned int ret = square_unsigned (2); if (ret != 4) { diff --git a/test cases/common/124 extract all shared library/prog.c b/test cases/common/124 extract all shared library/prog.c index 48e76808c..de0cc7f8e 100644 --- a/test cases/common/124 extract all shared library/prog.c +++ b/test cases/common/124 extract all shared library/prog.c @@ -1,7 +1,7 @@ #include"extractor.h" #include<stdio.h> -int main() { +int main(void) { if((1+2+3+4) != (func1() + func2() + func3() + func4())) { printf("Arithmetic is fail.\n"); return 1; diff --git a/test cases/common/125 object only target/prog.c b/test cases/common/125 object only target/prog.c index 09f2790a9..dc468ec88 100644 --- a/test cases/common/125 object only target/prog.c +++ b/test cases/common/125 object only target/prog.c @@ -2,6 +2,6 @@ int func1_in_obj(); int func2_in_obj(); int func3_in_obj(); -int main() { +int main(void) { return func1_in_obj() + func2_in_obj() + func3_in_obj(); } diff --git a/test cases/common/126 no buildincdir/prog.c b/test cases/common/126 no buildincdir/prog.c index 7e9d1940f..b356f6550 100644 --- a/test cases/common/126 no buildincdir/prog.c +++ b/test cases/common/126 no buildincdir/prog.c @@ -1,5 +1,5 @@ #include"header.h" -int main() { +int main(void) { return 0; } diff --git a/test cases/common/128 dependency file generation/main .c b/test cases/common/128 dependency file generation/main .c index 4cce7f667..03b2213bb 100644 --- a/test cases/common/128 dependency file generation/main .c +++ b/test cases/common/128 dependency file generation/main .c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 0; } diff --git a/test cases/common/129 configure file in generator/src/main.c b/test cases/common/129 configure file in generator/src/main.c index 3ee83e605..6329e4791 100644 --- a/test cases/common/129 configure file in generator/src/main.c +++ b/test cases/common/129 configure file in generator/src/main.c @@ -12,6 +12,6 @@ #error Source RESULT is not defined correctly #endif -int main() { +int main(void) { return 0; } diff --git a/test cases/common/13 pch/c/prog.c b/test cases/common/13 pch/c/prog.c index ee6df218e..12b790e05 100644 --- a/test cases/common/13 pch/c/prog.c +++ b/test cases/common/13 pch/c/prog.c @@ -4,7 +4,7 @@ void func() { fprintf(stdout, "This is a function that fails if stdio is not #included.\n"); } -int main() { +int main(void) { return 0; } diff --git a/test cases/common/13 pch/generated/prog.c b/test cases/common/13 pch/generated/prog.c index e1601c9c1..6765ac102 100644 --- a/test cases/common/13 pch/generated/prog.c +++ b/test cases/common/13 pch/generated/prog.c @@ -1,6 +1,6 @@ // No includes here, they need to come from the PCH -int main() { +int main(void) { return FOO + BAR; } diff --git a/test cases/common/13 pch/userDefined/prog.c b/test cases/common/13 pch/userDefined/prog.c index c7b713a57..475131b35 100644 --- a/test cases/common/13 pch/userDefined/prog.c +++ b/test cases/common/13 pch/userDefined/prog.c @@ -1,6 +1,6 @@ // No includes here, they need to come from the PCH -int main() { +int main(void) { // Method is implemented in pch.c. // This makes sure that we can properly handle user defined // pch implementation files and not only auto-generated ones. diff --git a/test cases/common/13 pch/withIncludeDirectories/prog.c b/test cases/common/13 pch/withIncludeDirectories/prog.c index ee6df218e..12b790e05 100644 --- a/test cases/common/13 pch/withIncludeDirectories/prog.c +++ b/test cases/common/13 pch/withIncludeDirectories/prog.c @@ -4,7 +4,7 @@ void func() { fprintf(stdout, "This is a function that fails if stdio is not #included.\n"); } -int main() { +int main(void) { return 0; } diff --git a/test cases/common/130 generated llvm ir/main.c b/test cases/common/130 generated llvm ir/main.c index 887c64ac4..35e8ed623 100644 --- a/test cases/common/130 generated llvm ir/main.c +++ b/test cases/common/130 generated llvm ir/main.c @@ -2,7 +2,7 @@ unsigned square_unsigned (unsigned a); -int main () +int main(void) { unsigned int ret = square_unsigned (2); if (ret != 4) { diff --git a/test cases/common/131 generated assembly/main.c b/test cases/common/131 generated assembly/main.c index 708eeb50b..fb38f9df4 100644 --- a/test cases/common/131 generated assembly/main.c +++ b/test cases/common/131 generated assembly/main.c @@ -5,7 +5,7 @@ #endif unsigned square_unsigned (unsigned a); -int main () +int main(void) { unsigned int ret = square_unsigned (2); if (ret != 4) { diff --git a/test cases/common/132 build by default targets in tests/main.c b/test cases/common/132 build by default targets in tests/main.c index 49e3a51d0..03b2213bb 100644 --- a/test cases/common/132 build by default targets in tests/main.c +++ b/test cases/common/132 build by default targets in tests/main.c @@ -1,3 +1,3 @@ -int main () { +int main(void) { return 0; } diff --git a/test cases/common/133 build by default/foo.c b/test cases/common/133 build by default/foo.c index 0e6f7a0cc..0322828dc 100644 --- a/test cases/common/133 build by default/foo.c +++ b/test cases/common/133 build by default/foo.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("Existentialism.\n"); return 0; } diff --git a/test cases/common/134 include order/ordertest.c b/test cases/common/134 include order/ordertest.c index a5896b42f..775e34fa1 100644 --- a/test cases/common/134 include order/ordertest.c +++ b/test cases/common/134 include order/ordertest.c @@ -4,7 +4,7 @@ #error "Should have picked up hdr.h from inc1/hdr.h" #endif -int main () +int main(void) { return 0; } diff --git a/test cases/common/134 include order/sub4/main.c b/test cases/common/134 include order/sub4/main.c index 77417ddba..89226a464 100644 --- a/test cases/common/134 include order/sub4/main.c +++ b/test cases/common/134 include order/sub4/main.c @@ -1,7 +1,7 @@ /* Use the <> include notation to force searching in include directories */ #include <main.h> -int main() { +int main(void) { if (somefunc() == 1984) return 0; return 1; diff --git a/test cases/common/135 override options/four.c b/test cases/common/135 override options/four.c index 2ab126dfc..7c8544850 100644 --- a/test cases/common/135 override options/four.c +++ b/test cases/common/135 override options/four.c @@ -4,6 +4,6 @@ static int duplicate_func() { return -4; } -int main() { +int main(void) { return duplicate_func() + func(); } diff --git a/test cases/common/135 override options/two.c b/test cases/common/135 override options/two.c index f3082a698..0f8048c21 100644 --- a/test cases/common/135 override options/two.c +++ b/test cases/common/135 override options/two.c @@ -1,6 +1,6 @@ /* * Requires a Unity build. Otherwise hidden_func is not specified. */ -int main() { +int main(void) { return hidden_func(); } diff --git a/test cases/common/137 c cpp and asm/main.c b/test cases/common/137 c cpp and asm/main.c index 66985ed80..293258f51 100644 --- a/test cases/common/137 c cpp and asm/main.c +++ b/test cases/common/137 c cpp and asm/main.c @@ -2,7 +2,7 @@ int get_retval(void); -int main() { +int main(void) { printf("C seems to be working.\n"); return get_retval(); } diff --git a/test cases/common/139 custom target object output/progdir/prog.c b/test cases/common/139 custom target object output/progdir/prog.c index d2648bb4f..9c82659d8 100644 --- a/test cases/common/139 custom target object output/progdir/prog.c +++ b/test cases/common/139 custom target object output/progdir/prog.c @@ -1,5 +1,5 @@ int func1_in_obj(); -int main() { +int main(void) { return func1_in_obj(); } diff --git a/test cases/common/14 configure file/dumpprog.c b/test cases/common/14 configure file/dumpprog.c index 80410f282..9f63b23b9 100644 --- a/test cases/common/14 configure file/dumpprog.c +++ b/test cases/common/14 configure file/dumpprog.c @@ -15,7 +15,7 @@ #define stringify(s) str(s) #define str(s) #s -int main() { +int main(void) { #if !(SHOULD_BE_UNQUOTED_STRING == string) printf("String token (unquoted) defined wrong.\n"); return 1; diff --git a/test cases/common/14 configure file/prog.c b/test cases/common/14 configure file/prog.c index 332e3bbb8..85e66b97e 100644 --- a/test cases/common/14 configure file/prog.c +++ b/test cases/common/14 configure file/prog.c @@ -8,7 +8,7 @@ #error "FAIL!" #endif -int main() { +int main(void) { #ifndef BE_TRUE return 1; #else diff --git a/test cases/common/14 configure file/prog2.c b/test cases/common/14 configure file/prog2.c index 2aff40c7f..8b90bfb52 100644 --- a/test cases/common/14 configure file/prog2.c +++ b/test cases/common/14 configure file/prog2.c @@ -1,5 +1,5 @@ #include<config2.h> -int main() { +int main(void) { return ZERO_RESULT; } diff --git a/test cases/common/14 configure file/prog4.c b/test cases/common/14 configure file/prog4.c index 7ee4f4925..1e32a3129 100644 --- a/test cases/common/14 configure file/prog4.c +++ b/test cases/common/14 configure file/prog4.c @@ -1,6 +1,6 @@ #include <config4a.h> #include <config4b.h> -int main() { +int main(void) { return RESULTA + RESULTB; } diff --git a/test cases/common/14 configure file/prog5.c b/test cases/common/14 configure file/prog5.c index f38753013..1a8f78523 100644 --- a/test cases/common/14 configure file/prog5.c +++ b/test cases/common/14 configure file/prog5.c @@ -1,6 +1,6 @@ #include <string.h> #include <config5.h> -int main() { +int main(void) { return strcmp(MESSAGE, "@var2@"); } diff --git a/test cases/common/14 configure file/prog6.c b/test cases/common/14 configure file/prog6.c index eecd63e58..57f558605 100644 --- a/test cases/common/14 configure file/prog6.c +++ b/test cases/common/14 configure file/prog6.c @@ -1,7 +1,7 @@ #include <string.h> #include <config6.h> -int main() { +int main(void) { return strcmp(MESSAGE1, "foo") || strcmp(MESSAGE2, "@var1@") || strcmp(MESSAGE3, "\\foo") diff --git a/test cases/common/14 configure file/prog7.c b/test cases/common/14 configure file/prog7.c index a0e6f75b2..802bc46e5 100644 --- a/test cases/common/14 configure file/prog7.c +++ b/test cases/common/14 configure file/prog7.c @@ -1,7 +1,7 @@ #include <string.h> #include <config7.h> -int main() { +int main(void) { return strcmp(MESSAGE1, "foo") || strcmp(MESSAGE2, "${var1}") || strcmp(MESSAGE3, "\\foo") diff --git a/test cases/common/14 configure file/prog9.c b/test cases/common/14 configure file/prog9.c index 7180a26bf..3f7760129 100644 --- a/test cases/common/14 configure file/prog9.c +++ b/test cases/common/14 configure file/prog9.c @@ -10,7 +10,7 @@ #error "Should be defined" #endif -int main() { +int main(void) { return strcmp(A_STRING, "foo") || strcmp(B_STRING, "foo") || A_INT != 42 diff --git a/test cases/common/141 whole archive/prog.c b/test cases/common/141 whole archive/prog.c index c6eb04500..1f553e554 100644 --- a/test cases/common/141 whole archive/prog.c +++ b/test cases/common/141 whole archive/prog.c @@ -1,5 +1,5 @@ #include<mylib.h> -int main() { +int main(void) { return func1() - func2(); } diff --git a/test cases/common/146 nested links/xephyr.c b/test cases/common/146 nested links/xephyr.c index 33c14ce1d..9b6bdc2ec 100644 --- a/test cases/common/146 nested links/xephyr.c +++ b/test cases/common/146 nested links/xephyr.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 0; } diff --git a/test cases/common/148 link depends custom target/foo.c b/test cases/common/148 link depends custom target/foo.c index 8700a9e32..58c86a62b 100644 --- a/test cases/common/148 link depends custom target/foo.c +++ b/test cases/common/148 link depends custom target/foo.c @@ -1,6 +1,6 @@ #include <stdio.h> -int main() { +int main(void) { const char *fn = DEPFILE; FILE *f = fopen(fn, "r"); if (!f) { diff --git a/test cases/common/149 recursive linking/circular/main.c b/test cases/common/149 recursive linking/circular/main.c index a419333f4..164abdf85 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 main(void) { 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 6598c72ad..334f86788 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 main(void) { 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 544ece92a..a16a89b31 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 main(void) { 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 2ddcb8891..cf091d089 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 main(void) { int val; val = get_shnodep_value (); diff --git a/test cases/common/15 if/prog.c b/test cases/common/15 if/prog.c index 76e819701..78f2de106 100644 --- a/test cases/common/15 if/prog.c +++ b/test cases/common/15 if/prog.c @@ -1 +1 @@ -int main() { return 0; } +int main(void) { return 0; } diff --git a/test cases/common/150 library at root/main/main.c b/test cases/common/150 library at root/main/main.c index c4e1b4ee3..eadf7e8ce 100644 --- a/test cases/common/150 library at root/main/main.c +++ b/test cases/common/150 library at root/main/main.c @@ -1,5 +1,5 @@ extern int fn(void); -int main() { +int main(void) { return 1 + fn(); } diff --git a/test cases/common/151 simd/simdchecker.c b/test cases/common/151 simd/simdchecker.c index 359382876..c7a0a978a 100644 --- a/test cases/common/151 simd/simdchecker.c +++ b/test cases/common/151 simd/simdchecker.c @@ -23,7 +23,7 @@ int check_simd_implementation(float *four, return rv; } -int main() { +int main(void) { static const float four_initial[4] = {2.0, 3.0, 4.0, 5.0}; ALIGN_16 float four[4]; const float expected[4] = {3.0, 4.0, 5.0, 6.0}; diff --git a/test cases/common/153 dotinclude/dotproc.c b/test cases/common/153 dotinclude/dotproc.c index d8f3829b3..f48c330bd 100644 --- a/test cases/common/153 dotinclude/dotproc.c +++ b/test cases/common/153 dotinclude/dotproc.c @@ -4,7 +4,7 @@ #error The wrapper stdio.h was not included. #endif -int main() { +int main(void) { printf("Eventually I got printed.\n"); return 0; } diff --git a/test cases/common/154 reserved targets/test.c b/test cases/common/154 reserved targets/test.c index 4cce7f667..03b2213bb 100644 --- a/test cases/common/154 reserved targets/test.c +++ b/test cases/common/154 reserved targets/test.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 0; } diff --git a/test cases/common/155 duplicate source names/dir1/file.c b/test cases/common/155 duplicate source names/dir1/file.c index 094e18713..1c4753eb9 100644 --- a/test cases/common/155 duplicate source names/dir1/file.c +++ b/test cases/common/155 duplicate source names/dir1/file.c @@ -3,7 +3,7 @@ extern int dir2_dir1; extern int dir3; extern int dir3_dir1; -int main() { +int main(void) { if (dir2 != 20) return 1; if (dir2_dir1 != 21) diff --git a/test cases/common/157 wrap file should not failed/src/subprojects/foo/prog2.c b/test cases/common/157 wrap file should not failed/src/subprojects/foo/prog2.c index dc14736b0..849b40004 100644 --- a/test cases/common/157 wrap file should not failed/src/subprojects/foo/prog2.c +++ b/test cases/common/157 wrap file should not failed/src/subprojects/foo/prog2.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("Do not have a file layout like this in your own projects.\n"); printf("This is only to test that this works.\n"); return 0; diff --git a/test cases/common/157 wrap file should not failed/src/subprojects/prog.c b/test cases/common/157 wrap file should not failed/src/subprojects/prog.c index dc14736b0..849b40004 100644 --- a/test cases/common/157 wrap file should not failed/src/subprojects/prog.c +++ b/test cases/common/157 wrap file should not failed/src/subprojects/prog.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("Do not have a file layout like this in your own projects.\n"); printf("This is only to test that this works.\n"); return 0; diff --git a/test cases/common/158 includedir subproj/prog.c b/test cases/common/158 includedir subproj/prog.c index f388ef85d..03b2213bb 100644 --- a/test cases/common/158 includedir subproj/prog.c +++ b/test cases/common/158 includedir subproj/prog.c @@ -1,4 +1,3 @@ - -int main() { +int main(void) { return 0; } diff --git a/test cases/common/159 subproject dir name collision/a.c b/test cases/common/159 subproject dir name collision/a.c index db85d4116..5b1208d92 100644 --- a/test cases/common/159 subproject dir name collision/a.c +++ b/test cases/common/159 subproject dir name collision/a.c @@ -2,7 +2,7 @@ char func_b(); char func_c(); -int main() { +int main(void) { if(func_b() != 'b') { return 1; } diff --git a/test cases/common/16 else/prog.c b/test cases/common/16 else/prog.c index 76e819701..78f2de106 100644 --- a/test cases/common/16 else/prog.c +++ b/test cases/common/16 else/prog.c @@ -1 +1 @@ -int main() { return 0; } +int main(void) { return 0; } diff --git a/test cases/common/17 comparison/prog.c b/test cases/common/17 comparison/prog.c index 76e819701..78f2de106 100644 --- a/test cases/common/17 comparison/prog.c +++ b/test cases/common/17 comparison/prog.c @@ -1 +1 @@ -int main() { return 0; } +int main(void) { return 0; } diff --git a/test cases/common/170 get project license/bar.c b/test cases/common/170 get project license/bar.c index cc34d94b4..f1bd822dc 100644 --- a/test cases/common/170 get project license/bar.c +++ b/test cases/common/170 get project license/bar.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I'm a main project bar.\n"); return 0; } diff --git a/test cases/common/172 subproject nested subproject dirs/prog.c b/test cases/common/172 subproject nested subproject dirs/prog.c index 0bb5253d8..5536c367a 100644 --- a/test cases/common/172 subproject nested subproject dirs/prog.c +++ b/test cases/common/172 subproject nested subproject dirs/prog.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func() == 42 ? 0 : 1; } diff --git a/test cases/common/173 preserve gendir/testprog.c b/test cases/common/173 preserve gendir/testprog.c index 4484f2253..b6a99268a 100644 --- a/test cases/common/173 preserve gendir/testprog.c +++ b/test cases/common/173 preserve gendir/testprog.c @@ -1,6 +1,6 @@ #include"base.h" #include"com/mesonbuild/subbie.h" -int main() { +int main(void) { return base() + subbie(); } diff --git a/test cases/common/174 source in dep/generated/main.c b/test cases/common/174 source in dep/generated/main.c index 75203cbc6..1ab980ac6 100644 --- a/test cases/common/174 source in dep/generated/main.c +++ b/test cases/common/174 source in dep/generated/main.c @@ -1,5 +1,5 @@ #include"funheader.h" -int main() { +int main(void) { return my_wonderful_function() != 42; } diff --git a/test cases/common/175 generator link whole/main.c b/test cases/common/175 generator link whole/main.c index acf871782..7605022d8 100644 --- a/test cases/common/175 generator link whole/main.c +++ b/test cases/common/175 generator link whole/main.c @@ -2,7 +2,7 @@ #include <stdio.h> -int main() { +int main(void) { if (meson_test_function() != 19) { printf("Bad meson_test_function()\n"); return 1; diff --git a/test cases/common/18 array/prog.c b/test cases/common/18 array/prog.c index faad956ef..51204b9d4 100644 --- a/test cases/common/18 array/prog.c +++ b/test cases/common/18 array/prog.c @@ -1,3 +1,3 @@ extern int func(); -int main() { return func(); } +int main(void) { return func(); } diff --git a/test cases/common/183 bothlibraries/main.c b/test cases/common/183 bothlibraries/main.c index b02e04895..9b6e39dd5 100644 --- a/test cases/common/183 bothlibraries/main.c +++ b/test cases/common/183 bothlibraries/main.c @@ -3,6 +3,6 @@ DO_IMPORT int func(); DO_IMPORT int retval; -int main() { +int main(void) { return func() == retval ? 0 : 1; } diff --git a/test cases/common/184 escape and unicode/main.c b/test cases/common/184 escape and unicode/main.c index 0bcde169c..34351259b 100644 --- a/test cases/common/184 escape and unicode/main.c +++ b/test cases/common/184 escape and unicode/main.c @@ -4,7 +4,7 @@ const char* does_it_work(); int a_fun(); -int main() { +int main(void) { if(strcmp(does_it_work(), "yes it does") != 0) { return -a_fun(); } diff --git a/test cases/common/187 find override/otherdir/main.c b/test cases/common/187 find override/otherdir/main.c index c442282ec..b3c39c9e4 100644 --- a/test cases/common/187 find override/otherdir/main.c +++ b/test cases/common/187 find override/otherdir/main.c @@ -1,5 +1,5 @@ int be_seeing_you(); -int main() { +int main(void) { return be_seeing_you() == 6 ? 0 : 1; } diff --git a/test cases/common/187 find override/otherdir/main2.c b/test cases/common/187 find override/otherdir/main2.c index e1f00c95f..522fcbde4 100644 --- a/test cases/common/187 find override/otherdir/main2.c +++ b/test cases/common/187 find override/otherdir/main2.c @@ -1,5 +1,5 @@ int number_returner(); -int main() { +int main(void) { return number_returner() == 100 ? 0 : 1; } diff --git a/test cases/common/188 partial dependency/declare_dependency/main.c b/test cases/common/188 partial dependency/declare_dependency/main.c index e9ed0329a..057b71304 100644 --- a/test cases/common/188 partial dependency/declare_dependency/main.c +++ b/test cases/common/188 partial dependency/declare_dependency/main.c @@ -15,7 +15,7 @@ #include "foo.h" -int main() { +int main(void) { int a = foo(); if (a == 1) { return 0; diff --git a/test cases/common/19 includedir/src/prog.c b/test cases/common/19 includedir/src/prog.c index eb9e2e2ca..ce4dd67e9 100644 --- a/test cases/common/19 includedir/src/prog.c +++ b/test cases/common/19 includedir/src/prog.c @@ -1,5 +1,5 @@ #include "func.h" -int main() { +int main(void) { return func(); } diff --git a/test cases/common/195 install_mode/trivial.c b/test cases/common/195 install_mode/trivial.c index 38b58cc54..96612d48b 100644 --- a/test cases/common/195 install_mode/trivial.c +++ b/test cases/common/195 install_mode/trivial.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("Trivial test is working.\n"); return 0; } diff --git a/test cases/common/20 header in file list/prog.c b/test cases/common/20 header in file list/prog.c index a9216a68b..97acb3fc9 100644 --- a/test cases/common/20 header in file list/prog.c +++ b/test cases/common/20 header in file list/prog.c @@ -1,3 +1,3 @@ #include "header.h" -int main() { return 0; } +int main(void) { return 0; } diff --git a/test cases/common/200 generator in subdir/com/mesonbuild/testprog.c b/test cases/common/200 generator in subdir/com/mesonbuild/testprog.c index 5ea0cb3f6..7a7cdf7aa 100644 --- a/test cases/common/200 generator in subdir/com/mesonbuild/testprog.c +++ b/test cases/common/200 generator in subdir/com/mesonbuild/testprog.c @@ -1,5 +1,5 @@ #include"subbie.h" -int main() { +int main(void) { return subbie(); } diff --git a/test cases/common/202 subproject with features/nothing.c b/test cases/common/202 subproject with features/nothing.c index 5bc549337..58fe69254 100644 --- a/test cases/common/202 subproject with features/nothing.c +++ b/test cases/common/202 subproject with features/nothing.c @@ -1,4 +1,4 @@ -int main() +int main(void) { return 0; -}
\ No newline at end of file +} diff --git a/test cases/common/207 kwarg entry/prog.c b/test cases/common/207 kwarg entry/prog.c index 6d1e2f932..2eec26bbb 100644 --- a/test cases/common/207 kwarg entry/prog.c +++ b/test cases/common/207 kwarg entry/prog.c @@ -1,7 +1,7 @@ #include<prog.h> #include<stdio.h> -int main() { +int main(void) { printf(MESSAGE); return 0; } diff --git a/test cases/common/215 link custom/prog.c b/test cases/common/215 link custom/prog.c index 22487c554..2273b1d8a 100644 --- a/test cases/common/215 link custom/prog.c +++ b/test cases/common/215 link custom/prog.c @@ -1,6 +1,6 @@ void flob(); -int main() { +int main(void) { flob(); return 0; } diff --git a/test cases/common/216 link custom_i single from multiple/prog.c b/test cases/common/216 link custom_i single from multiple/prog.c index 7826d74b9..46d10c78e 100644 --- a/test cases/common/216 link custom_i single from multiple/prog.c +++ b/test cases/common/216 link custom_i single from multiple/prog.c @@ -1,5 +1,5 @@ int flob(); -int main() { +int main(void) { return (flob() == 1 ? 0 : 1); } diff --git a/test cases/common/217 link custom_i multiple from multiple/prog.c b/test cases/common/217 link custom_i multiple from multiple/prog.c index 34768991a..2d626ef1b 100644 --- a/test cases/common/217 link custom_i multiple from multiple/prog.c +++ b/test cases/common/217 link custom_i multiple from multiple/prog.c @@ -1,7 +1,7 @@ void flob_1(); void flob_2(); -int main() { +int main(void) { flob_1(); flob_2(); return 0; diff --git a/test cases/common/225 include_dir dot/src/main.c b/test cases/common/225 include_dir dot/src/main.c index 31f6046bf..192b783f6 100644 --- a/test cases/common/225 include_dir dot/src/main.c +++ b/test cases/common/225 include_dir dot/src/main.c @@ -1,5 +1,5 @@ #include "rone.h" -int main() { +int main(void) { return rOne(); -}
\ No newline at end of file +} diff --git a/test cases/common/23 object extraction/main.c b/test cases/common/23 object extraction/main.c index 0bb5253d8..5536c367a 100644 --- a/test cases/common/23 object extraction/main.c +++ b/test cases/common/23 object extraction/main.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func() == 42 ? 0 : 1; } diff --git a/test cases/common/24 endian/prog.c b/test cases/common/24 endian/prog.c index b598b7ad1..90bd9583a 100644 --- a/test cases/common/24 endian/prog.c +++ b/test cases/common/24 endian/prog.c @@ -8,7 +8,7 @@ int is_big_endian(void) { } -int main() { +int main(void) { int is_be_check = is_big_endian(); int is_be; #ifdef IS_BE diff --git a/test cases/common/26 config subdir/src/prog.c b/test cases/common/26 config subdir/src/prog.c index 15a10d160..b9db89045 100644 --- a/test cases/common/26 config subdir/src/prog.c +++ b/test cases/common/26 config subdir/src/prog.c @@ -1,5 +1,5 @@ #include "config.h" -int main() { +int main(void) { return RETURN_VALUE; } diff --git a/test cases/common/27 pipeline/depends/prog.c b/test cases/common/27 pipeline/depends/prog.c index f438a0042..8bd6e03fc 100644 --- a/test cases/common/27 pipeline/depends/prog.c +++ b/test cases/common/27 pipeline/depends/prog.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func() != 42; } diff --git a/test cases/common/27 pipeline/prog.c b/test cases/common/27 pipeline/prog.c index 458fc84eb..7bd54d43b 100644 --- a/test cases/common/27 pipeline/prog.c +++ b/test cases/common/27 pipeline/prog.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func(); } diff --git a/test cases/common/27 pipeline/src/prog.c b/test cases/common/27 pipeline/src/prog.c index e693d8a7d..83121b5ef 100644 --- a/test cases/common/27 pipeline/src/prog.c +++ b/test cases/common/27 pipeline/src/prog.c @@ -1,6 +1,6 @@ #include"input_src.h" -int main() { +int main(void) { void *foo = printf; if(foo) { return 0; diff --git a/test cases/common/33 define10/prog.c b/test cases/common/33 define10/prog.c index d13995b23..519b40dcb 100644 --- a/test cases/common/33 define10/prog.c +++ b/test cases/common/33 define10/prog.c @@ -1,7 +1,7 @@ #include<stdio.h> #include"config.h" -int main() { +int main(void) { if(ONE != 1) { fprintf(stderr, "ONE is not 1.\n"); return 1; diff --git a/test cases/common/36 tryrun/ok.c b/test cases/common/36 tryrun/ok.c index 0c987d938..e2a36c8b5 100644 --- a/test cases/common/36 tryrun/ok.c +++ b/test cases/common/36 tryrun/ok.c @@ -1,5 +1,6 @@ #include<stdio.h> -int main() { + +int main(void) { printf("%s\n", "stdout"); fprintf(stderr, "%s\n", "stderr"); return 0; diff --git a/test cases/common/42 library chain/main.c b/test cases/common/42 library chain/main.c index 7b015b712..775475588 100644 --- a/test cases/common/42 library chain/main.c +++ b/test cases/common/42 library chain/main.c @@ -1,5 +1,5 @@ int libfun(); -int main() { +int main(void) { return libfun(); } diff --git a/test cases/common/44 test args/env2vars.c b/test cases/common/44 test args/env2vars.c index f6c8ba33a..e940c9a8c 100644 --- a/test cases/common/44 test args/env2vars.c +++ b/test cases/common/44 test args/env2vars.c @@ -2,7 +2,7 @@ #include<string.h> #include<stdlib.h> -int main() { +int main(void) { if(strcmp(getenv("first"), "something-else") != 0) { fprintf(stderr, "First envvar is wrong. %s\n", getenv("first")); return 1; diff --git a/test cases/common/44 test args/envvars.c b/test cases/common/44 test args/envvars.c index e40cc9be1..086b0be34 100644 --- a/test cases/common/44 test args/envvars.c +++ b/test cases/common/44 test args/envvars.c @@ -2,7 +2,7 @@ #include<string.h> #include<stdlib.h> -int main() { +int main(void) { if(strcmp(getenv("first"), "val1") != 0) { fprintf(stderr, "First envvar is wrong. %s\n", getenv("first")); return 1; diff --git a/test cases/common/45 subproject/subprojects/sublib/simpletest.c b/test cases/common/45 subproject/subprojects/sublib/simpletest.c index 01d0f252f..2184bc68c 100644 --- a/test cases/common/45 subproject/subprojects/sublib/simpletest.c +++ b/test cases/common/45 subproject/subprojects/sublib/simpletest.c @@ -1,5 +1,5 @@ #include<subdefs.h> -int main() { +int main(void) { return subfunc() == 42 ? 0 : 1; } diff --git a/test cases/common/45 subproject/user.c b/test cases/common/45 subproject/user.c index ec34477ae..918162266 100644 --- a/test cases/common/45 subproject/user.c +++ b/test cases/common/45 subproject/user.c @@ -2,7 +2,7 @@ #include<stdio.h> -int main() { +int main(void) { int res; printf("Calling into sublib now.\n"); res = subfunc(); diff --git a/test cases/common/48 custom install dirs/prog.c b/test cases/common/48 custom install dirs/prog.c index 33c14ce1d..9b6bdc2ec 100644 --- a/test cases/common/48 custom install dirs/prog.c +++ b/test cases/common/48 custom install dirs/prog.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 0; } diff --git a/test cases/common/49 subproject subproject/prog.c b/test cases/common/49 subproject subproject/prog.c index 0bb5253d8..5536c367a 100644 --- a/test cases/common/49 subproject subproject/prog.c +++ b/test cases/common/49 subproject subproject/prog.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func() == 42 ? 0 : 1; } diff --git a/test cases/common/5 linkstatic/main.c b/test cases/common/5 linkstatic/main.c index 458fc84eb..7bd54d43b 100644 --- a/test cases/common/5 linkstatic/main.c +++ b/test cases/common/5 linkstatic/main.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func(); } diff --git a/test cases/common/50 same file name/prog.c b/test cases/common/50 same file name/prog.c index 6e3628e78..61bc874de 100644 --- a/test cases/common/50 same file name/prog.c +++ b/test cases/common/50 same file name/prog.c @@ -1,6 +1,6 @@ int func1(); int func2(); -int main() { +int main(void) { return func1() - func2(); } diff --git a/test cases/common/51 file grabber/prog.c b/test cases/common/51 file grabber/prog.c index 581b0e721..47ccc3037 100644 --- a/test cases/common/51 file grabber/prog.c +++ b/test cases/common/51 file grabber/prog.c @@ -2,6 +2,6 @@ int funca(); int funcb(); int funcc(); -int main() { +int main(void) { return funca() + funcb() + funcc(); } diff --git a/test cases/common/51 file grabber/subdir/subprog.c b/test cases/common/51 file grabber/subdir/subprog.c index 581b0e721..47ccc3037 100644 --- a/test cases/common/51 file grabber/subdir/subprog.c +++ b/test cases/common/51 file grabber/subdir/subprog.c @@ -2,6 +2,6 @@ int funca(); int funcb(); int funcc(); -int main() { +int main(void) { return funca() + funcb() + funcc(); } diff --git a/test cases/common/53 custom target chain/usetarget/myexe.c b/test cases/common/53 custom target chain/usetarget/myexe.c index a5a13c3ef..33311332e 100644 --- a/test cases/common/53 custom target chain/usetarget/myexe.c +++ b/test cases/common/53 custom target chain/usetarget/myexe.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am myexe.\n"); return 0; } diff --git a/test cases/common/55 object generator/prog.c b/test cases/common/55 object generator/prog.c index 09f2790a9..dc468ec88 100644 --- a/test cases/common/55 object generator/prog.c +++ b/test cases/common/55 object generator/prog.c @@ -2,6 +2,6 @@ int func1_in_obj(); int func2_in_obj(); int func3_in_obj(); -int main() { +int main(void) { return func1_in_obj() + func2_in_obj() + func3_in_obj(); } diff --git a/test cases/common/56 install script/prog.c b/test cases/common/56 install script/prog.c index 1d32c26fa..3bbf08ed5 100644 --- a/test cases/common/56 install script/prog.c +++ b/test cases/common/56 install script/prog.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("This is text.\n"); return 0; } diff --git a/test cases/common/57 custom target source output/main.c b/test cases/common/57 custom target source output/main.c index ca9909bc1..bca138713 100644 --- a/test cases/common/57 custom target source output/main.c +++ b/test cases/common/57 custom target source output/main.c @@ -1,5 +1,5 @@ #include"mylib.h" -int main() { +int main(void) { return func(); } diff --git a/test cases/common/58 exe static shared/prog.c b/test cases/common/58 exe static shared/prog.c index b1dbe14e4..3ba9a8fbe 100644 --- a/test cases/common/58 exe static shared/prog.c +++ b/test cases/common/58 exe static shared/prog.c @@ -1,7 +1,7 @@ int shlibfunc2(); int statlibfunc(); -int main() { +int main(void) { if (statlibfunc() != 42) return 1; if (shlibfunc2() != 24) diff --git a/test cases/common/6 linkshared/main.c b/test cases/common/6 linkshared/main.c index ff5a7329b..81320e539 100644 --- a/test cases/common/6 linkshared/main.c +++ b/test cases/common/6 linkshared/main.c @@ -6,6 +6,6 @@ int DLL_IMPORT func(); -int main() { +int main(void) { return func(); } diff --git a/test cases/common/60 custom header generator/prog.c b/test cases/common/60 custom header generator/prog.c index 2d071afaf..acd0ff79b 100644 --- a/test cases/common/60 custom header generator/prog.c +++ b/test cases/common/60 custom header generator/prog.c @@ -1,5 +1,5 @@ #include"myheader.lh" -int main() { +int main(void) { return RET_VAL; } diff --git a/test cases/common/63 foreach/prog1.c b/test cases/common/63 foreach/prog1.c index 30c67dfe2..339dc494b 100644 --- a/test cases/common/63 foreach/prog1.c +++ b/test cases/common/63 foreach/prog1.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("This is test #1.\n"); return 0; } diff --git a/test cases/common/63 foreach/prog2.c b/test cases/common/63 foreach/prog2.c index c25a20505..c2132883a 100644 --- a/test cases/common/63 foreach/prog2.c +++ b/test cases/common/63 foreach/prog2.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("This is test #2.\n"); return 0; } diff --git a/test cases/common/63 foreach/prog3.c b/test cases/common/63 foreach/prog3.c index 7bea76d9a..905a530c7 100644 --- a/test cases/common/63 foreach/prog3.c +++ b/test cases/common/63 foreach/prog3.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("This is test #3.\n"); return 0; } diff --git a/test cases/common/68 build always/main.c b/test cases/common/68 build always/main.c index 3632ab837..a9ee55ea1 100644 --- a/test cases/common/68 build always/main.c +++ b/test cases/common/68 build always/main.c @@ -1,7 +1,7 @@ #include<stdio.h> #include"version.h" -int main() { +int main(void) { printf("Version is %s.\n", version_string); return 0; } diff --git a/test cases/common/69 vcstag/tagprog.c b/test cases/common/69 vcstag/tagprog.c index 1c47e52db..19b775456 100644 --- a/test cases/common/69 vcstag/tagprog.c +++ b/test cases/common/69 vcstag/tagprog.c @@ -2,7 +2,7 @@ const char *vcstag; -int main() { +int main(void) { printf("Version is %s\n", vcstag); return 0; } diff --git a/test cases/common/71 should fail/failing.c b/test cases/common/71 should fail/failing.c index 6346e2d26..3e70e5079 100644 --- a/test cases/common/71 should fail/failing.c +++ b/test cases/common/71 should fail/failing.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 1; } diff --git a/test cases/common/75 shared subproject/a.c b/test cases/common/75 shared subproject/a.c index db85d4116..5b1208d92 100644 --- a/test cases/common/75 shared subproject/a.c +++ b/test cases/common/75 shared subproject/a.c @@ -2,7 +2,7 @@ char func_b(); char func_c(); -int main() { +int main(void) { if(func_b() != 'b') { return 1; } diff --git a/test cases/common/76 shared subproject 2/a.c b/test cases/common/76 shared subproject 2/a.c index db85d4116..5b1208d92 100644 --- a/test cases/common/76 shared subproject 2/a.c +++ b/test cases/common/76 shared subproject 2/a.c @@ -2,7 +2,7 @@ char func_b(); char func_c(); -int main() { +int main(void) { if(func_b() != 'b') { return 1; } diff --git a/test cases/common/77 file object/prog.c b/test cases/common/77 file object/prog.c index c2b6e9829..e4a786cfa 100644 --- a/test cases/common/77 file object/prog.c +++ b/test cases/common/77 file object/prog.c @@ -2,7 +2,7 @@ int func(); /* Files in different subdirs return different values. */ -int main() { +int main(void) { if(func() == 0) { printf("Iz success.\n"); } else { diff --git a/test cases/common/77 file object/subdir1/prog.c b/test cases/common/77 file object/subdir1/prog.c index cba4b1406..1a09f7f7d 100644 --- a/test cases/common/77 file object/subdir1/prog.c +++ b/test cases/common/77 file object/subdir1/prog.c @@ -2,7 +2,7 @@ int func(); -int main() { +int main(void) { if(func() == 1) { printf("Iz success.\n"); } else { diff --git a/test cases/common/77 file object/subdir2/prog.c b/test cases/common/77 file object/subdir2/prog.c index 124c98b30..558e5ee39 100644 --- a/test cases/common/77 file object/subdir2/prog.c +++ b/test cases/common/77 file object/subdir2/prog.c @@ -2,7 +2,7 @@ int func(); -int main() { +int main(void) { if(func() == 2) { printf("Iz success.\n"); } else { diff --git a/test cases/common/78 custom subproject dir/a.c b/test cases/common/78 custom subproject dir/a.c index db85d4116..5b1208d92 100644 --- a/test cases/common/78 custom subproject dir/a.c +++ b/test cases/common/78 custom subproject dir/a.c @@ -2,7 +2,7 @@ char func_b(); char func_c(); -int main() { +int main(void) { if(func_b() != 'b') { return 1; } diff --git a/test cases/common/8 install/prog.c b/test cases/common/8 install/prog.c index 33c14ce1d..9b6bdc2ec 100644 --- a/test cases/common/8 install/prog.c +++ b/test cases/common/8 install/prog.c @@ -1,3 +1,3 @@ -int main() { +int main(void) { return 0; } diff --git a/test cases/common/80 extract from nested subdir/tst/first/exe_first.c b/test cases/common/80 extract from nested subdir/tst/first/exe_first.c index f6c1f7471..e8188cd25 100644 --- a/test cases/common/80 extract from nested subdir/tst/first/exe_first.c +++ b/test cases/common/80 extract from nested subdir/tst/first/exe_first.c @@ -1,5 +1,5 @@ int first(void); -int main() { +int main(void) { return first() - 1001; } diff --git a/test cases/common/81 internal dependency/src/main.c b/test cases/common/81 internal dependency/src/main.c index 137cc615f..dbb7c4a06 100644 --- a/test cases/common/81 internal dependency/src/main.c +++ b/test cases/common/81 internal dependency/src/main.c @@ -1,7 +1,7 @@ #include<stdio.h> #include<proj1.h> -int main() { +int main(void) { printf("Now calling into library.\n"); proj1_func1(); proj1_func2(); diff --git a/test cases/common/82 same basename/exe1.c b/test cases/common/82 same basename/exe1.c index 458fc84eb..7bd54d43b 100644 --- a/test cases/common/82 same basename/exe1.c +++ b/test cases/common/82 same basename/exe1.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func(); } diff --git a/test cases/common/82 same basename/exe2.c b/test cases/common/82 same basename/exe2.c index 9dbb09d6f..6c47a9d76 100644 --- a/test cases/common/82 same basename/exe2.c +++ b/test cases/common/82 same basename/exe2.c @@ -1,5 +1,5 @@ int func(); -int main() { +int main(void) { return func() == 1 ? 0 : 1; } diff --git a/test cases/common/83 declare dep/main.c b/test cases/common/83 declare dep/main.c index 3c37f819c..62200c943 100644 --- a/test cases/common/83 declare dep/main.c +++ b/test cases/common/83 declare dep/main.c @@ -5,7 +5,7 @@ #error "Entity use flag not used for compilation." #endif -int main() { +int main(void) { if(entity_func1() != 5) { printf("Error in func1.\n"); return 1; diff --git a/test cases/common/84 extract all/prog.c b/test cases/common/84 extract all/prog.c index 48e76808c..de0cc7f8e 100644 --- a/test cases/common/84 extract all/prog.c +++ b/test cases/common/84 extract all/prog.c @@ -1,7 +1,7 @@ #include"extractor.h" #include<stdio.h> -int main() { +int main(void) { if((1+2+3+4) != (func1() + func2() + func3() + func4())) { printf("Arithmetic is fail.\n"); return 1; diff --git a/test cases/common/85 add language/prog.c b/test cases/common/85 add language/prog.c index bdd43ff48..9d747f00d 100644 --- a/test cases/common/85 add language/prog.c +++ b/test cases/common/85 add language/prog.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am plain C.\n"); return 0; } diff --git a/test cases/common/86 identical target name in subproject/bar.c b/test cases/common/86 identical target name in subproject/bar.c index cc34d94b4..f1bd822dc 100644 --- a/test cases/common/86 identical target name in subproject/bar.c +++ b/test cases/common/86 identical target name in subproject/bar.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I'm a main project bar.\n"); return 0; } diff --git a/test cases/common/86 identical target name in subproject/subprojects/foo/bar.c b/test cases/common/86 identical target name in subproject/subprojects/foo/bar.c index 6e72576ea..5e7006baf 100644 --- a/test cases/common/86 identical target name in subproject/subprojects/foo/bar.c +++ b/test cases/common/86 identical target name in subproject/subprojects/foo/bar.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I'm a subproject bar.\n"); return 0; } diff --git a/test cases/common/89 private include/user/libuser.c b/test cases/common/89 private include/user/libuser.c index b72bb4d92..c1724867b 100644 --- a/test cases/common/89 private include/user/libuser.c +++ b/test cases/common/89 private include/user/libuser.c @@ -1,6 +1,6 @@ #include"foo1.h" #include"foo2.h" -int main() { +int main(void) { return foo1() + foo2(); } diff --git a/test cases/common/94 gen extra/plain.c b/test cases/common/94 gen extra/plain.c index 914de7200..6fc3d2282 100644 --- a/test cases/common/94 gen extra/plain.c +++ b/test cases/common/94 gen extra/plain.c @@ -1,5 +1,5 @@ int bob_mcbob(); -int main() { +int main(void) { return bob_mcbob(); } diff --git a/test cases/common/94 gen extra/upper.c b/test cases/common/94 gen extra/upper.c index dad78fc97..f216dce94 100644 --- a/test cases/common/94 gen extra/upper.c +++ b/test cases/common/94 gen extra/upper.c @@ -1,5 +1,5 @@ int BOB_MCBOB(); -int main() { +int main(void) { return BOB_MCBOB(); } diff --git a/test cases/common/95 benchmark/delayer.c b/test cases/common/95 benchmark/delayer.c index c8da7ae15..b410c4605 100644 --- a/test cases/common/95 benchmark/delayer.c +++ b/test cases/common/95 benchmark/delayer.c @@ -6,7 +6,7 @@ #include<windows.h> #endif -int main() { +int main(void) { srand(time(NULL)); #if !defined(_WIN32) struct timespec t; diff --git a/test cases/common/96 test workdir/opener.c b/test cases/common/96 test workdir/opener.c index 7be914d69..c946e18c2 100644 --- a/test cases/common/96 test workdir/opener.c +++ b/test cases/common/96 test workdir/opener.c @@ -2,7 +2,7 @@ #include<stdio.h> -int main() { +int main(void) { FILE *f = fopen("opener.c", "r"); if(f) { fclose(f); diff --git a/test cases/common/97 suites/exe1.c b/test cases/common/97 suites/exe1.c index 89a1c4eb2..6e3236221 100644 --- a/test cases/common/97 suites/exe1.c +++ b/test cases/common/97 suites/exe1.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am test exe1.\n"); return 0; } diff --git a/test cases/common/97 suites/exe2.c b/test cases/common/97 suites/exe2.c index 92f287d46..21a9dd61f 100644 --- a/test cases/common/97 suites/exe2.c +++ b/test cases/common/97 suites/exe2.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am test exe2.\n"); return 0; } diff --git a/test cases/common/97 suites/subprojects/sub/sub1.c b/test cases/common/97 suites/subprojects/sub/sub1.c index ab5822a5a..e06762443 100644 --- a/test cases/common/97 suites/subprojects/sub/sub1.c +++ b/test cases/common/97 suites/subprojects/sub/sub1.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am test sub1.\n"); return 0; } diff --git a/test cases/common/97 suites/subprojects/sub/sub2.c b/test cases/common/97 suites/subprojects/sub/sub2.c index f1e6d7818..0b457dc01 100644 --- a/test cases/common/97 suites/subprojects/sub/sub2.c +++ b/test cases/common/97 suites/subprojects/sub/sub2.c @@ -1,6 +1,6 @@ #include<stdio.h> -int main() { +int main(void) { printf("I am test sub2.\n"); return 0; } diff --git a/test cases/common/98 threads/threadprog.c b/test cases/common/98 threads/threadprog.c index 5db40f1af..789f24be0 100644 --- a/test cases/common/98 threads/threadprog.c +++ b/test cases/common/98 threads/threadprog.c @@ -8,7 +8,7 @@ DWORD WINAPI thread_func() { return 0; } -int main() { +int main(void) { DWORD id; HANDLE th; printf("Starting thread.\n"); @@ -27,7 +27,7 @@ void* main_func() { return NULL; } -int main() { +int main(void) { pthread_t thread; int rc; printf("Starting thread.\n"); diff --git a/test cases/common/99 manygen/depuser.c b/test cases/common/99 manygen/depuser.c index 6374cd08d..1ab248748 100644 --- a/test cases/common/99 manygen/depuser.c +++ b/test cases/common/99 manygen/depuser.c @@ -1,6 +1,6 @@ #include"gen_func.h" -int main() { +int main(void) { unsigned int i = (unsigned int) gen_func_in_lib(); unsigned int j = (unsigned int) gen_func_in_obj(); unsigned int k = (unsigned int) gen_func_in_src(); |
