X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fda65%2Fmain.c;h=fcb1ccfceea954e6a8e412b94ab0abdacc20e20e;hb=79a2185c42d82f98dd66c5a996bbb887a4f8648e;hp=c321074f460543cd753eb047a0cc85006a9f0237;hpb=0f4acb37c687984ce95f519d5c2509aacf66ff55;p=cc65 diff --git a/src/da65/main.c b/src/da65/main.c index c321074f4..fcb1ccfce 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -143,7 +143,8 @@ static void OptCPU (const char* Opt, const char* Arg) -static void OptFormFeeds (const char* Opt, const char* Arg) +static void OptFormFeeds (const char* Opt attribute ((unused)), + const char* Arg attribute ((unused))) /* Add form feeds to the output */ { FormFeeds = 1; @@ -151,7 +152,8 @@ static void OptFormFeeds (const char* Opt, const char* Arg) -static void OptHelp (const char* Opt, const char* Arg) +static void OptHelp (const char* Opt attribute ((unused)), + const char* Arg attribute ((unused))) /* Print usage information and exit */ { Usage (); @@ -160,14 +162,10 @@ static void OptHelp (const char* Opt, const char* Arg) -static void OptPageLength (const char* Opt, const char* Arg) +static void OptPageLength (const char* Opt attribute ((unused)), const char* Arg) /* Handle the --pagelength option */ { - int Len; - if (Arg == 0) { - NeedArg (Opt); - } - Len = atoi (Arg); + int Len = atoi (Arg); if (Len != 0 && (Len < MIN_PAGE_LEN || Len > MAX_PAGE_LEN)) { AbEnd ("Invalid page length: %d", Len); } @@ -184,7 +182,8 @@ static void OptStartAddr (const char* Opt, const char* Arg) -static void OptVerbose (const char* Opt, const char* Arg) +static void OptVerbose (const char* Opt attribute ((unused)), + const char* Arg attribute ((unused))) /* Increase verbosity */ { ++Verbosity; @@ -192,7 +191,8 @@ static void OptVerbose (const char* Opt, const char* Arg) -static void OptVersion (const char* Opt, const char* Arg) +static void OptVersion (const char* Opt attribute ((unused)), + const char* Arg attribute ((unused))) /* Print the disassembler version */ { fprintf (stderr, @@ -257,7 +257,7 @@ static void OneOpcode (unsigned RemainingBytes) case atDWordTab: DWordTable (); - break; + break; case atAddrTab: AddrTable ();