]> git.sur5r.net Git - cc65/commitdiff
added missing spaces before braces. added unknown option msg if not given -Wc|l|a... 426/head
authormc78 <mc78@outlook.de>
Tue, 23 May 2017 20:57:27 +0000 (22:57 +0200)
committermc78 <mc78@outlook.de>
Tue, 23 May 2017 20:57:27 +0000 (22:57 +0200)
src/cl65/main.c

index 8252b61ffadd169980c7cf66e4a9f8876b59db83..b209cb21d2fb74e829b467fd65176d49633d00ee 100644 (file)
@@ -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':