Fix problem with changed syntax of option -W for the compiler: -W will now
only be passed to the compiler together with all warning names. git-svn-id: svn://svn.cc65.org/cc65/trunk@5006 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -60,7 +60,7 @@ Short options:
|
|||||||
-S Compile but don't assemble and link
|
-S Compile but don't assemble and link
|
||||||
-T Include source as comment
|
-T Include source as comment
|
||||||
-V Print the version number
|
-V Print the version number
|
||||||
-W Suppress warnings
|
-W name[,...] Supress compiler warnings
|
||||||
-Wa options Pass options to the assembler
|
-Wa options Pass options to the assembler
|
||||||
-Wl options Pass options to the linker
|
-Wl options Pass options to the linker
|
||||||
|
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ static void Usage (void)
|
|||||||
" -S\t\t\t\tCompile but don't assemble and link\n"
|
" -S\t\t\t\tCompile but don't assemble and link\n"
|
||||||
" -T\t\t\t\tInclude source as comment\n"
|
" -T\t\t\t\tInclude source as comment\n"
|
||||||
" -V\t\t\t\tPrint the version number\n"
|
" -V\t\t\t\tPrint the version number\n"
|
||||||
" -W\t\t\t\tSuppress warnings\n"
|
" -W name[,...]\t\t\tSupress compiler warnings\n"
|
||||||
" -Wa options\t\t\tPass options to the assembler\n"
|
" -Wa options\t\t\tPass options to the assembler\n"
|
||||||
" -Wl options\t\t\tPass options to the linker\n"
|
" -Wl options\t\t\tPass options to the linker\n"
|
||||||
"\n"
|
"\n"
|
||||||
@@ -1352,25 +1352,15 @@ int main (int argc, char* argv [])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'W':
|
case 'W':
|
||||||
switch (Arg[2]) {
|
if (Arg[2] == 'a' && Arg[3] == '\0') {
|
||||||
|
/* -Wa: Pass options to assembler */
|
||||||
case 'a':
|
|
||||||
OptAsmArgs (Arg, GetArg (&I, 3));
|
OptAsmArgs (Arg, GetArg (&I, 3));
|
||||||
break;
|
} else if (Arg[2] == 'l' && Arg[3] == '\0') {
|
||||||
|
/* -Wl: Pass options to linker */
|
||||||
case 'l':
|
|
||||||
OptLdArgs (Arg, GetArg (&I, 3));
|
OptLdArgs (Arg, GetArg (&I, 3));
|
||||||
break;
|
} else {
|
||||||
|
/* Anything else: Suppress warnings (compiler) */
|
||||||
case '\0':
|
CmdAddArg2 (&CC65, "-W", GetArg (&I, 3));
|
||||||
/* Suppress warnings - compiler and assembler */
|
|
||||||
CmdAddArg (&CC65, "-W");
|
|
||||||
CmdAddArg2 (&CA65, "-W", "0");
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
UnknownOption (Arg);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user