From patchwork Mon Jul 17 04:01:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Li X-Patchwork-Id: 9843951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 680D86037F for ; Mon, 17 Jul 2017 04:01:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55BBA28409 for ; Mon, 17 Jul 2017 04:01:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A4F32841D; Mon, 17 Jul 2017 04:01:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D438D28409 for ; Mon, 17 Jul 2017 04:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751005AbdGQEBF (ORCPT ); Mon, 17 Jul 2017 00:01:05 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34718 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbdGQEBF (ORCPT ); Mon, 17 Jul 2017 00:01:05 -0400 Received: by mail-pf0-f193.google.com with SMTP id c24so18130259pfe.1 for ; Sun, 16 Jul 2017 21:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=vmX2VeuCE3kpOazJLxOsAe48N3PPDxA0NxRAAKH86qw=; b=Vt9URE93LP/4hKWB1FW3Ou4QLAdtjhzI+4Lb8g8l/otMNqsPOd+jsn4/ARuxMROGV7 GtfSq8XZbt95Ye8BAi5159j0jkiz+47WT6YaHs5Fc6wgMqbhzIJRqvHB1Cm8qk60gFsc iA8aFOweSysFAUE/Xt3dv0lR2YE7/QYl/aawMS45v/f23YqiP8dhQ58msCEkXRn2NrNn 6Td1X5kGO8vniK6fJ9nZ6X7j5IYMska1G372gdWLsKOfE/o0Sqh/lR1fl/klFHOc3MoP BvDMELITr6vqXuc2DA25SIvDgtvwazqjTxbazn2ndn+le3mb2zVN0atjRcvcJ3KxoiLK RznQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=vmX2VeuCE3kpOazJLxOsAe48N3PPDxA0NxRAAKH86qw=; b=HoUwW0wxzf4cobr1H+z6pIF1SS6Ga9CrtLqeWNoE2DKsnlgavMIbl67ZIQMlWOx7xP O0NbRtHpUXY5+I9+albsJAMtgAXnlgC9uuVP7C7RCKFUkE1o44Tn/yfLmDQEkDOk4oyH 7wWsq+JXiLKqNImvxNXdcLMhcO7ujpUP4zQ4e+jXuyTSjdbx6eduHi/6yaWM7x7lYHTM CedoFp/qnTFRL8h6GFLQjT0UgbhFvHCV4uxW5wRB+q8eYfRD2bDXKCipiFZRadi+g/zL /WXweEUrvC5bMa9N9ZC774qqYtqqTEkyk4wgKCPEXWMv9MBmPORCE7KvZTejoYC7eIcE k49g== X-Gm-Message-State: AIVw111Qpo5lkmmtCi3uy0EtWSPaDUU9J2zpsXepzs/NTsBoSm1JN+Zi tE50aeiBjMFLBIQeaN5L2tYNGAuwPzD6 X-Received: by 10.84.224.136 with SMTP id s8mr1085872plj.89.1500264064441; Sun, 16 Jul 2017 21:01:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.149.130 with HTTP; Sun, 16 Jul 2017 21:01:03 -0700 (PDT) From: Christopher Li Date: Mon, 17 Jul 2017 00:01:03 -0400 X-Google-Sender-Auth: CgqdtbC7QqKkV50qStseFApXa2E Message-ID: Subject: [PATCH 3/3] Adding _Pragma() To: Linux-Sparse , Luc Van Oostenryck Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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