Mercurial > projects > ddmd
diff dmd/VolatileStatement.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | 10317f0c89a5 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/VolatileStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/VolatileStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -26,19 +26,19 @@ this.statement = statement; } - Statement syntaxCopy() + override Statement syntaxCopy() { assert(false); } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { if (statement) statement = statement.semantic(sc); return this; } - Statements flatten(Scope sc) + override Statements flatten(Scope sc) { Statements a = statement ? statement.flatten(sc) : null; if (a) @@ -55,24 +55,24 @@ return a; } - BE blockExit() + override BE blockExit() { return statement ? statement.blockExit() : BE.BEfallthru; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { if (statement) statement = statement.inlineScan(iss); return this; } - void toIR(IRState* irs) + override void toIR(IRState* irs) { block* b; @@ -96,4 +96,4 @@ } } } -} \ No newline at end of file +}