From patchwork Tue Jul 18 02:55:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Li X-Patchwork-Id: 9846691 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 5DD7760212 for ; Tue, 18 Jul 2017 02:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6103D26256 for ; Tue, 18 Jul 2017 02:55:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5596226E1A; Tue, 18 Jul 2017 02:55:34 +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 DAFA926256 for ; Tue, 18 Jul 2017 02:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbdGRCzd (ORCPT ); Mon, 17 Jul 2017 22:55:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35057 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbdGRCzc (ORCPT ); Mon, 17 Jul 2017 22:55:32 -0400 Received: by mail-pf0-f196.google.com with SMTP id q85so984208pfq.2 for ; Mon, 17 Jul 2017 19:55:32 -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=uJY4QbADxW6SUmseo1h4aVC+2rqm+cHURGD+MN5qVaw=; b=P+K7R/xu0O27t4q9ZRbbRzqXE8E0qxDeJXKkK3JtpGPyczlrpZSuEygJaR5tbtriVQ qJj85yi8Aon1TIZvAtryMX6xtKU1XmrTTRtW8bpLxn9TAfXJydBTF0ew6lNxtlxaq85y ujVFxefVCvpOW/G8KXHUTq6FSaym9zfv6nKYQTdzjqRs46puRfpEUJdt3G6On9YPlry0 wsfcDsjikGeSgU0aC6mdA7jwrlfR4QRCaQawDh2K2ZRuk09ziXZ5VSfsiTbW8dGvjvFb LQH72abX1z0OsU8GqcYULbUptD4RKw/Qajj/y1cMSCE/qk8xPSr4xhpTn6yTF+RHyZJO ZPtA== 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=uJY4QbADxW6SUmseo1h4aVC+2rqm+cHURGD+MN5qVaw=; b=ndJ+dVkNSjCEY1w4iLzvbrVU6o2QFCfRi3dXjgoY+FcZWNJ+yvpilu+8qUpayGkkuO EA2lFR9ZG0XW2OxR1QhoJSc9w4EB6R+lRhgdQWig7ImlesayMLZXodbc8M/g1+YeBa7K lFAgDvSQPLxZoWUSqeKdNVM3dunON075A191fsvsQ/OWm8p1UiXYp6BVr35/4dWS/Iuy DKWH6JHQhZEd52zAdkV67fK2r2798XNKpIo07j24e+LM1/WkZdeTVye5KEDBz+ejtQKd 17ploCW719SF+vBJshRah2Ng492+HB+OWTfqwwK5PydNzLwownwUBSDHXRZ9ysdPMvLL ouNQ== X-Gm-Message-State: AIVw112uRY78MGRH5hl9BOl/DnN2MqXH1qS2dNTo7Lj2Fw8pyCJxnrRX ex8SpIzhgeEIfaVqPOtAMua4uAK0A/tr X-Received: by 10.98.5.70 with SMTP id 67mr767354pff.188.1500346532176; Mon, 17 Jul 2017 19:55:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.149.130 with HTTP; Mon, 17 Jul 2017 19:55:31 -0700 (PDT) From: Christopher Li Date: Mon, 17 Jul 2017 22:55:31 -0400 X-Google-Sender-Auth: IYjMDR5qvlfHfMpVrMvuph-fOag Message-ID: Subject: [PATCH 3/4] V2 Adding _Pragma() To: Linux-Sparse , Ramsay Jones 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-off-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