From 69992eef05b797c6d9f74397d851844a75e4a731 Mon Sep 17 00:00:00 2001 From: Mihails Strasuns Date: Tue, 29 Jul 2014 17:19:52 +0200 Subject: [PATCH] Change -v2 diagnostic message for volatile Sometimes volatile was used to prevent reordering in which case synchronized may not be applicable. Threading is tricky so better to not propose striaghtforward solution. --- src/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.c b/src/parse.c index 2422cf3fcd93..fbfe87058186 100644 --- a/src/parse.c +++ b/src/parse.c @@ -3575,7 +3575,7 @@ Statement *Parser::parseStatement(int flags) s = parseStatement(PSsemi | PScurlyscope); if (global.params.Dversion >= 3 && mod && mod->isRoot()) { - warning(loc, "for D2 use 'synchronized' instead of 'volatile'"); + warning(loc, "'volatile' is deprecated in D2, consult with module maintainer for appropriate replacement"); } s = new VolatileStatement(loc, s); break;