[Issue 16378] New: Cases where empty statements warnings not emitted
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 11 14:39:47 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16378
Issue ID: 16378
Summary: Cases where empty statements warnings not emitted
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
For these sources
°°°°°°°°°°°°°°
void main()
{struct A{;}}
°°°°°°°°°°°°°°
void main()
{};
°°°°°°°°°°°°°°
> Warning: use '{ }' for an empty statement, not a ';'
Should be emitted when the -w switch is passed to dmd.
--
More information about the Digitalmars-d-bugs
mailing list