Skip to content

Commit

Permalink
Fix parsing of -w argument. Fixes mono#4853
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed May 3, 2012
1 parent 80d4f6b commit 6e11de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mcs/mcs/settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ ParseResult ParseOption (string option, ref string[] args, CompilerSettings sett
return ParseResult.Success;

case "/warn":
case "/w":
if (value.Length == 0) {
Error_RequiresArgument (option);
return ParseResult.Error;
Expand Down
2 changes: 1 addition & 1 deletion mcs/tests/test-514.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Compiler options: -warnaserror -warn:2
// Compiler options: -warnaserror -w:2

using System;
class X {
Expand Down

0 comments on commit 6e11de0

Please sign in to comment.