]> git.sur5r.net Git - cc65/commitdiff
Fixed an error in the last change: Arguments for option -W were not passed
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 May 2011 17:58:45 +0000 (17:58 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 May 2011 17:58:45 +0000 (17:58 +0000)
correctly to the compiler.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5007 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cl65/main.c

index 0ef25af326dff7031234f88b145eca5f2da24762..d1a6a38237415822b5b6f82c206412f928636cfa 100644 (file)
@@ -1360,7 +1360,7 @@ int main (int argc, char* argv [])
                        OptLdArgs (Arg, GetArg (&I, 3));
                    } else {
                        /* Anything else: Suppress warnings (compiler) */
-                       CmdAddArg2 (&CC65, "-W", GetArg (&I, 3));
+                       CmdAddArg2 (&CC65, "-W", GetArg (&I, 2));
                    }
                    break;