On 10/22/15 10:32, Jakub Jelinek wrote:
There is a warning for if (cond); but not for if (cond) ; or if (cond) /* comment */ ; which is the style used in various places throughout the compiler.
Sadly, that's not quite accurate. The warning occurs for all the empty if's you describe. It doesn't occur for
if (a) ; else ... This is a case where I really want to say something about that else. nathan