From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwtdx-0002G1-M7 for qemu-devel@nongnu.org; Fri, 26 Aug 2011 06:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwtdw-00063O-EQ for qemu-devel@nongnu.org; Fri, 26 Aug 2011 06:28:09 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:45158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwtdw-00063C-93 for qemu-devel@nongnu.org; Fri, 26 Aug 2011 06:28:08 -0400 Received: by bkbzv3 with SMTP id zv3so2579368bkb.4 for ; Fri, 26 Aug 2011 03:28:06 -0700 (PDT) Message-ID: <4E577532.4070901@gmail.com> Date: Fri, 26 Aug 2011 14:28:02 +0400 From: Pavel Borzenkov MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Bug in checkpatch.pl? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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