freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Freetype-devel post from address@hidden requires approval


From: Miles Bader
Subject: Re: [ft-devel] Freetype-devel post from address@hidden requires approval
Date: Wed, 12 Jun 2013 18:25:20 +0900

Werner LEMBERG <address@hidden> writes:
>> After a bit more consideration I suspect it's simply the '0' in
>> "while (0)" that's causing all the warnings.
>
> Is this really true?  Can you check that explicitly?  The `do{...}
> while(0)' construction is extremely useful and so common that it
> would make the MSVC warning completely useless.

Indeed so common that it can be called idiomatic in this usage (and
has been as long as I can remember).

Given it's idiomatic nature, it's pretty surprising that any widely
used compiler warns about it, even at maximum warning settings....

-miles

-- 
Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]