linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Apostrophes confuse preprocessor
@ 2007-07-12 16:33 Pavel Roskin
  0 siblings, 0 replies; only message in thread
From: Pavel Roskin @ 2007-07-12 16:33 UTC (permalink / raw)
  To: linux-sparse

Hello!

Sparse reports errors for apostrophes in preprocessor directives.  To
make things worse, it suppresses all useful warnings in the file.

$ cat test.c
#error Don't do it
$ sparse test.c 
test.c:1:13: error: Bad character constant
test.c:1:2: error: Don do it
$ gcc test.c
test.c:1:2: error: #error Don't do it
$

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-12 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 16:33 Apostrophes confuse preprocessor Pavel Roskin

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).