diff mbox

[3/3] Adding _Pragma()

Message ID CANeU7QnTHFpwvdHzLFUhYPky4oxfkvsgU-8z2-g59DFnN2rd7A@mail.gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Christopher Li July 17, 2017, 4:01 a.m. UTC
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@chrisli.org>
---
 lib.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

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