Apostrophes confuse preprocessor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux