On 21/04/15 18:07, David Malcolm wrote:
On Thu, 2015-04-16 at 10:26 -0700, Mike Stump wrote:Does it also handle:if (cone); stmt; ? Would be good to add that to the test suite, as that is another hard to spot common error that should be caught.Not yet, but I agree that it would be a good thing to issue a warning for.
GCC already warns for the above:test.c:3:9: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
if (a); ^ Cheers, Manuel.