[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Bug in checkpatch.pl?
From: |
Pavel Borzenkov |
Subject: |
[Qemu-devel] Bug in checkpatch.pl? |
Date: |
Fri, 26 Aug 2011 14:28:02 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20110812 Thunderbird/6.0 |
Hi.
checkpatch.pl correctly reports a warning for the following code:
if (something)
foo;
else
bar;
WARNING: braces {} are necessary for all arms of this statement
#1: FILE: tmp/a.c:1:
+if (something)
[...]
+else
[...]
But if I modify it as follows, checkpatch.pl doesn't report any
warning/error:
if (something) {
foo;
} else
bar;
Doesn't QEMU coding style forbid such constructions?
--
Pavel
- [Qemu-devel] Bug in checkpatch.pl?,
Pavel Borzenkov <=