All of lore.kernel.org
 help / color / mirror / Atom feed
* false positive in checkpatch.pl (complex macro values)
@ 2007-08-24  7:51 Mike Frysinger
  2007-08-24 11:41 ` Andy Whitcroft
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2007-08-24  7:51 UTC (permalink / raw)
  To: apw; +Cc: Linux Kernel, Michael Hennerich

in some code that does like:
#define foo { a, b, c, \
    d, e, f, g }
...
int boo[] = foo;
...

checkpatch.pl throws a fit:
ERROR: Macros with complex values should be enclosed in parenthesis
#10: FILE: ...
+#define foo {a, b, c, d}

perhaps the check should also allow {...} ?  or ignore lists like this ...
-mike

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

end of thread, other threads:[~2007-08-24 19:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-24  7:51 false positive in checkpatch.pl (complex macro values) Mike Frysinger
2007-08-24 11:41 ` Andy Whitcroft
2007-08-24 12:43   ` SL Baur
2007-08-24 12:50     ` SL Baur
2007-08-24 13:24     ` Mike Frysinger
2007-08-24 16:47       ` Josef Sipek
2007-08-24 19:10         ` Mike Frysinger
2007-08-24 17:22     ` Olivier Galibert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.