qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] checkpatch.pl false positive: wants braces on #if
@ 2011-02-23 16:07 Peter Maydell
  2011-02-25 15:38 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2011-02-23 16:07 UTC (permalink / raw)
  To: QEMU Developers

If you run checkpatch.pl on this patch:
http://patchwork.ozlabs.org/patch/84189/

it complains:
WARNING: braces {} are necessary even for single statement blocks
#29: FILE: tcg/tcg.c:454:
+#if defined(CONFIG_DEBUG_TCG)
+    s->temps_in_use++;


...but braces on a cpp conditional are a bit tricky :-)

The script is sufficiently hairy perl that I'm afraid I
can't suggest a solution, only report the problem.

-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-25 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 16:07 [Qemu-devel] checkpatch.pl false positive: wants braces on #if Peter Maydell
2011-02-25 15:38 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).