From patchwork Wed Nov 2 21:59:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9409967 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 2CB6A60721 for ; Wed, 2 Nov 2016 22:01:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E8802A58A for ; Wed, 2 Nov 2016 22:01:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1380E2A5D8; Wed, 2 Nov 2016 22:01:58 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 C63F42A58A for ; Wed, 2 Nov 2016 22:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757539AbcKBWB4 (ORCPT ); Wed, 2 Nov 2016 18:01:56 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36103 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755978AbcKBWBz (ORCPT ); Wed, 2 Nov 2016 18:01:55 -0400 Received: by mail-wm0-f66.google.com with SMTP id c17so5043181wmc.3 for ; Wed, 02 Nov 2016 15:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kIEhGrbKXb5hP562DU8mdgE8afjbGElcEeLFNTnbasw=; b=ZdvKtEvWh6dnwvuw10aeBs5Az/u5oo9pIV40EUrKfdyMJQjjrldLYg/64Njz41q6pD NJDJgK5/rSrVz6pyzgocfUF2I+KQS/kws/wBcMQPKVO5Si7vMZXYdL3mB49LT3VcTJJP uFXSRftQ99KocFvDewH33i0H2ZYIWReQHVi29tQBRKYCXpJaszU1FFM8wAhvlEKaanLr 8S4HfJv12Zw8u6MhWu6S5uixzPPH4OV/OvY4OBGkT1rp+Mb4s9sFPRlkKP8kv1FoWUWE Tl8PxY6HD2ptT/DDGAnP4/fDh0+HTU0v4+IZHacAKxC+WxhGCJMkzAzQbU4asVxhrnot OJpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kIEhGrbKXb5hP562DU8mdgE8afjbGElcEeLFNTnbasw=; b=K6eGHb0ntcSS2IMRMhbZ+lqndZwyACJTXYdZQ4lUPYzbGs6aaxdvfksyyzuLz9Hd22 KzMUYrNHDsfQ7ZKfD9zzAJUvaHCNrmGy+EhNeFHqUns0zRlJHHS0reYHLNihD+t+SxjZ E9W51FvJakRrxZHIVKDemGrBwmrn5Xx+3QyfFja8a5ymVqDDyPZ5RslBLcY/cM5RyGDb v5I2iqIbZQY6YrJ+adEjgqx2mmnNxj6KChFPPsrhSF51SOF3mOtCEyO0bDTmZQzKH4GJ cPIw4LtPpxE30x03HSHD3CG56W49eNBKaY+x2/TyYfjsJdQqApf55gj9Za7QCF7Rachl tJWg== X-Gm-Message-State: ABUngvf9aXnQQXpRv5GQGf4OkM3HhXwLaPa5cFEzvJzd0oZwrU4dBjgTrixbeKOsxzTXiw== X-Received: by 10.194.103.195 with SMTP id fy3mr5630311wjb.136.1478124114542; Wed, 02 Nov 2016 15:01:54 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:88e:a00:2d6d:8fb2:833f:e082]) by smtp.gmail.com with ESMTPSA id m194sm5530727wmg.11.2016.11.02.15.01.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2016 15:01:54 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck Subject: [PATCH 3/3] By default disable '-Wunknown-attribute' Date: Wed, 2 Nov 2016 22:59:39 +0100 Message-Id: <20161102215939.36765-4-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161102215939.36765-1-luc.vanoostenryck@gmail.com> References: <20161102215939.36765-1-luc.vanoostenryck@gmail.com> 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 Generally, we won't be interested by the warnings from this flag, but we can always explicitly ask for them if needed. Signed-off-by: Luc Van Oostenryck --- lib.c | 2 +- validation/Wunknown-attribute-def.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib.c b/lib.c index 138736e7..b4b09a78 100644 --- a/lib.c +++ b/lib.c @@ -240,7 +240,7 @@ int Wtransparent_union = 0; int Wtypesign = 0; int Wundef = 0; int Wuninitialized = 1; -int Wunknown_attribute = 1; +int Wunknown_attribute = 0; int Wvla = 1; int dbg_entry = 0; diff --git a/validation/Wunknown-attribute-def.c b/validation/Wunknown-attribute-def.c index 0c0868d6..defe643d 100644 --- a/validation/Wunknown-attribute-def.c +++ b/validation/Wunknown-attribute-def.c @@ -4,6 +4,5 @@ static int foo(void) __attribute__((unknown_attribute)); * check-name: warn-unknown-attribute * * check-error-start -Wunknown-attribute-def.c:1:37: warning: attribute 'unknown_attribute': unknown attribute * check-error-end */