| Thread overview | |||||
|---|---|---|---|---|---|
|
July 21, 2012 Incorrect warning: use '{ }' for an empty statement, not a ';' | ||||
|---|---|---|---|---|
| ||||
The following code -
void STOP() { asm { int 3; }; }
- generates the warning:
Incorrect warning: use '{ }' for an empty statement, not a ';'
That's wrong, yeah?
| ||||
July 21, 2012 Re: Incorrect warning: use '{ }' for an empty statement, not a ';' | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Stuart | 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@lycus.org http://lycus.org | |||
July 21, 2012 Re: Incorrect warning: use '{ }' for an empty statement, not a ';' | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | On Saturday, 21 July 2012 at 22:53:25 UTC, Alex Rønne Petersen wrote:
> 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.
Ah. Silly me.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply