Werner LEMBERG <w...@gnu.org> 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 _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel