Removed warning on implicit "return 0" in C99 standard main function in default cc65 mode.

This commit is contained in:
acqn
2022-10-22 12:45:51 +08:00
parent d7d1d89698
commit 03ceeb4ad1
4 changed files with 31 additions and 35 deletions

View File

@@ -13,9 +13,9 @@
and then "make" again to confirm
*/
int main(int argc, char* argv[])
short main(int argc, char* argv[])
{
printf("%02x", 0x42);
n = 0; /* produce an error */
/* another error */
printf("%02x", 0x42); /* produce an error */
n = 0; /* produce an error */
/* produce a warning */
}

View File

@@ -20,5 +20,4 @@ int main(int argc, char* argv[])
{
printf("%02x", 0x42);
/* produce a warning */
return 0;
}

View File

@@ -1,2 +1,2 @@
custom-reference.c:24: Warning: Parameter 'argc' is never used
custom-reference.c:24: Warning: Parameter 'argv' is never used
custom-reference.c:23: Warning: Parameter 'argc' is never used
custom-reference.c:23: Warning: Parameter 'argv' is never used