Incorrect warning: use '{ }' for an empty statement, not a ';'

Alex Rønne Petersen alex at lycus.org
Sat Jul 21 15:53:25 PDT 2012


On 22-07-2012 00:52, Stuart wrote:
> The following code -
>
>     void STOP() { asm { int 3; }; }
>
> - generates the warning:
>
>     Incorrect warning: use '{ }' for an empty statement, not a ';'
>
> That's wrong, yeah?

No. Drop the semicolon after the curly brace.

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list