Skip to content

Commit

Permalink
Revert #4619 - added predefined version D_Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed May 20, 2015
1 parent d872b5a commit bcb4f2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/cond.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ bool VersionCondition::isPredefined(const char *ident)
"D_SIMD",
"D_Version2",
"D_NoBoundsChecks",
"D_Warnings",
"unittest",
"assert",
"all",
Expand Down
6 changes: 0 additions & 6 deletions src/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,9 @@ Language changes listed by -transition=id:\n\
goto Lerror;
}
else if (strcmp(p + 1, "w") == 0)
{
global.params.warnings = 1;
VersionCondition::addPredefinedGlobalIdent("D_Warnings");
}
else if (strcmp(p + 1, "wi") == 0)
{
global.params.warnings = 2;
VersionCondition::addPredefinedGlobalIdent("D_Warnings");
}
else if (strcmp(p + 1, "O") == 0)
global.params.optimize = true;
else if (p[1] == 'o')
Expand Down

0 comments on commit bcb4f2e

Please sign in to comment.