From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <20161102215939.36765-1-luc.vanoostenryck@gmail.com> Return-path: 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) In-Reply-To: <20161102215939.36765-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck 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 */ -- 2.10.1