Mercurial > projects > ddmd
diff dmd/StaticAssertStatement.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 | b7d29f613539 |
children | 43073c7c7769 |
line wrap: on
line diff
--- a/dmd/StaticAssertStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/StaticAssertStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -17,20 +17,20 @@ this.sa = sa; } - Statement syntaxCopy() + override Statement syntaxCopy() { StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null)); return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { sa.semantic2(sc); return null; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } -} \ No newline at end of file +}