[PATCH 3/3] Adding _Pragma()

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

 



This will make the selfcheck target reduce a lot of error on
test-inspect.c.  The gtk header file use _Pragma().

Signed-of-By: Christopher Li <sparse@xxxxxxxxxxx>
---
 lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib.c b/lib.c
index de63504..ce66a81 100644
--- a/lib.c
+++ b/lib.c
@@ -1156,6 +1156,7 @@ void create_builtin_stream(void)

  add_pre_buffer("#define __extension__\n");
  add_pre_buffer("#define __pragma__\n");
+ add_pre_buffer("#define _Pragma(x)\n");

  // gcc defines __SIZE_TYPE__ to be size_t.  For linux/i86 and
  // solaris/sparc that is really "unsigned int" and for linux/x86_64
-- 
2.9.4
--
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