Skip to content

Commit

Permalink
Disable -v2 message for typedef
Browse files Browse the repository at this point in the history
As it is impossible to get a decent library implementation of typedef
in D1 (in absence of `alias this`) it is better to not warn about it and
rely on deprecation message of D2 compiler instead (which is essentially the same)
  • Loading branch information
Mihails Strasuns committed Sep 23, 2014
1 parent 709b169 commit 2b0e5db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/parse.c
Expand Up @@ -2205,10 +2205,6 @@ Dsymbols *Parser::parseDeclarations()
switch (token.value)
{
case TOKtypedef:
if (global.params.Dversion >= 3 && mod && mod->isRoot())
{
warning(loc, "typedef is deprecated in D2, use either alias or custom struct wrapper");
}
case TOKalias:
tok = token.value;
nextToken();
Expand Down

0 comments on commit 2b0e5db

Please sign in to comment.