Skip to content

Commit

Permalink
[-v2] use synchronized instead of volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jun 30, 2014
1 parent 290906a commit c8d580a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3573,9 +3573,10 @@ Statement *Parser::parseStatement(int flags)
case TOKvolatile:
nextToken();
s = parseStatement(PSsemi | PScurlyscope);
#if DMDV2
deprecation("volatile statements deprecated; used synchronized statements instead");
#endif
if (global.params.Dversion >= 3 && mod && mod->isRoot())
{
warning(loc, "for D2 use 'synchronized' instead of 'volatile'");
}
s = new VolatileStatement(loc, s);
break;

Expand Down

0 comments on commit c8d580a

Please sign in to comment.