From: mc78 Date: Tue, 23 May 2017 20:57:27 +0000 (+0200) Subject: added missing spaces before braces. added unknown option msg if not given -Wc|l|a... X-Git-Tag: V2.17~136^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F426%2Fhead;p=cc65 added missing spaces before braces. added unknown option msg if not given -Wc|l|a when passing options to subprocess --- diff --git a/src/cl65/main.c b/src/cl65/main.c index 8252b61ff..b209cb21d 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -180,8 +180,8 @@ static void DisableLinking (void) static void DisableAssemblingAndLinking (void) { - DisableAssembling(); - DisableLinking(); + DisableAssembling (); + DisableLinking (); } @@ -1427,7 +1427,7 @@ int main (int argc, char* argv []) case 'S': /* Dont assemble and link the created files */ - DisableAssemblingAndLinking(); + DisableAssemblingAndLinking (); break; case 'T': @@ -1443,7 +1443,7 @@ int main (int argc, char* argv []) case 'E': /* Forward -E to compiler */ CmdAddArg (&CC65, Arg); - DisableAssemblingAndLinking(); + DisableAssemblingAndLinking (); break; case 'W': @@ -1465,9 +1465,10 @@ int main (int argc, char* argv []) OptLdArgs (Arg, GetArg (&I, 3)); break; default: + UnknownOption (Arg); break; } - }else { + } else { /* Anything else: Suppress warnings (compiler) */ CmdAddArg2 (&CC65, "-W", GetArg (&I, 2)); } @@ -1475,7 +1476,7 @@ int main (int argc, char* argv []) case 'c': /* Don't link the resulting files */ - DisableLinking(); + DisableLinking (); break; case 'd':