"Wrong main declaration" build failure(s) — clang 3.6.0
main declaration should be:int main(void); int main(int argc, char *argv[]); int main(int argc, char **argv); int main(int argc, char **argv, char **envp);and clang refuses the declaration:
main (int argc, char*argv[]) { }
# error: C++ requires a type specifier for all declarations
| Package | Version | Supposed error message | Full log | Bug report |
|---|---|---|---|---|
| amideco | 0.31e-3.1 | amideco.c:45:5: error: first parameter of 'main' (argument count) must be of type 'int' | Log | |
| awardeco | 0.2-3.1 | awardeco.c:37:5: error: first parameter of 'main' (argument count) must be of type 'int' | Log | |
| flintqs | 20070817-1 | QS.cpp:1566:5: error: second parameter of 'main' (argument array) must be of type 'char **' | Log | |
| fweb | 1.62-12 | ./t_type.h:53:5: error: second parameter of 'main' (argument array) must be of type 'char **' | Log | |
| inventor | 2.1.5-10-18 | ppp.c++:630:1: error: C++ requires a type specifier for all declarations | Log | |
| kbuild | 1:0.1.9998svn2695+dfsg-2 | kmkbuiltin.h:53:12: error: too many parameters (4) for 'main': must be 0, 2, or 3 | Log | |
| kdc2tiff | 0.35-10 | kdc2tiff.cpp:308:1: error: C++ requires a type specifier for all declarations | Log | |
| konwert | 1.8-11.2 | bin/trs.cc:594:1: error: C++ requires a type specifier for all declarations | Log | |
| lcalc | 1.23+dfsg-4 | ../include/Lcomplex.h:138:14: error: C++ requires a type specifier for all declarations | Log | |
| libxbase | 2.0.0-8.5 | exptest.cpp:136:1: error: C++ requires a type specifier for all declarations | Log | |
| moonshot-ui | 0.7.1-1 | examples/client.c:36:5: error: second parameter of 'main' (argument array) must be of type 'char **' | Log | |
| phnxdeco | 0.33-3 | phnxdeco.c:37:5: error: first parameter of 'main' (argument count) must be of type 'int' | Log | |
| pretzel | 2.0n-2-0.3 | pretty.nw:232:1: error: C++ requires a type specifier for all declarations | Log | |
| psicode | 3.4.0-5 | :68:1: error: C++ requires a type specifier for all declarations | Log | |
| re | 0.1-5 | src/re_cmd.c:12:1: error: C++ requires a type specifier for all declarations | Log | |
| taopm | 1.0-3 | taoparser.yy:2950:1: error: C++ requires a type specifier for all declarations | Log | |
| xball | 3.0.1-1.2 | xball.c:28:1: error: first parameter of 'main' (argument count) must be of type 'int' | Log | |
| xevil | 2.02r2-10 | :352:1: error: C++ requires a type specifier for all declarations | Log | |
| xjdic | 24-9 | xjdfrontend.c:2597:1: error: second parameter of 'main' (argument array) must be of type 'char **' | Log | |
| xjdic | 24-9 | xjdfrontend.c:2597:1: error: second parameter of 'main' (argument array) must be of type 'char **' | Log |
20 errors