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 */
}