Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932153Ab1BUDf3 (ORCPT ); Sun, 20 Feb 2011 22:35:29 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:51014 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755013Ab1BUDf0 convert rfc822-to-8bit (ORCPT ); Sun, 20 Feb 2011 22:35:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KlsuS1MW1VNclSkpz/javww2UdyxCw/463OS4BY5p+ZCxUUX/N72MlcG+mn9hnfj+q HfvbABdJXlNqIHJHaL7wjTwNfS1D81Qt+0W/xLggZWzNYfkA9YuT0InmC6lIotoU0krQ DaGH8tvGlBi9Vwo8v7QEPlmmoQN2etROnaxjM= MIME-Version: 1.0 In-Reply-To: <20110221022707.GB18332@liondog.tnic> References: <1298219710-9846-1-git-send-email-bp@alien8.de> <20110220175709.GA5178@merkur.ravnborg.org> <20110220193906.GC6713@liondog.tnic> <1298232047.1284.14.camel@Joe-Laptop> <20110221022707.GB18332@liondog.tnic> Date: Sun, 20 Feb 2011 22:34:57 -0500 Message-ID: Subject: Re: [PATCH] kbuild: Add extra gcc checks From: Arnaud Lacombe To: Borislav Petkov , Joe Perches , Sam Ravnborg , Michal Marek , torvalds@linux-foundation.org, x86@kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1413 Lines: 42 Hi, On Sun, Feb 20, 2011 at 9:27 PM, Borislav Petkov wrote: > On Sun, Feb 20, 2011 at 12:00:47PM -0800, Joe Perches wrote: >> > +EXTRA_CFLAGS += -Wextra -Wno-unused >> >> Why add -Wno-unused ? >> >> If it's because of verbosity, maybe > > Nah, it's because it is too noisy and spits too many false positives. > "too noisy" is a subjective point of view. > For example, it reports the arguments of all those stubs from the > headers which are provided for the else-branch of a CONFIG_* option, > etc. > and by the same way, you silence function marked with `warn_unused_result', unless I misread the manpage. If you want to silence something specific, why not just the `no' variant of the thing you do not want ? Btw, could you not take the same approach as the one taken by the BSD, which is 3 or 4 different level of new warnings. That way, you keep the noisy stuff for the highest warning level. - Arnaud > -- > Regards/Gruss, > ? ?Boris. > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at ?http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/