aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorChristopher Li <sparse@chrisli.org>2017-07-16 01:10:54 -0400
committerChristopher Li <sparse@chrisli.org>2017-08-09 21:56:31 -0400
commit9cee3e1148da50dfe51eb9fd900fdb5ece345d0b (patch)
tree41405869ce0f42d20d96b793734436b93738bd21 /lib.c
parent1d9cfb92a7b3006d2cbae05f025fb38c58fba097 (diff)
downloadsparse-dev-9cee3e1148da50dfe51eb9fd900fdb5ece345d0b.tar.gz
Adding _Pragma()
This will make the selfcheck target reduce a lot of error on test-inspect.c. The gtk header file use _Pragma(). Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index de635043..ce66a814 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