Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753634Ab1DUTj0 (ORCPT ); Thu, 21 Apr 2011 15:39:26 -0400 Received: from mail3.caviumnetworks.com ([12.108.191.235]:13623 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253Ab1DUTj0 (ORCPT ); Thu, 21 Apr 2011 15:39:26 -0400 Message-ID: <4DB087EC.1010205@caviumnetworks.com> Date: Thu, 21 Apr 2011 12:39:24 -0700 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: Linus Torvalds CC: Dave Jones , Linux Kernel , Andrew Morton Subject: Re: annoying new gcc 4.6.0 warnings. References: <20110421192117.GA14249@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Apr 2011 19:39:25.0409 (UTC) FILETIME=[D21DBD10:01CC005B] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 29 On 04/21/2011 12:24 PM, Linus Torvalds wrote: > On Thu, Apr 21, 2011 at 12:21 PM, Dave Jones wrote: >> >> There might be some valid bugs found (I think DaveM found a few already) from this new >> warning, but it seems like everything I've looked at so far is just noise. >> >> Any thoughts ? > > Yeah, let's just disable the crazy warning. Maybe some of them are > valid, but it's like the f*cking sign-compare warning: most of them > are just inane noise, and as such the warning is not worth the pain. > > I assume (hope) that there is some -Wno-unused-but-set-variable thing > we could do, the same way we do -Wno-trigraphs for another totally > useless gcc warning. > This particular warning has helped to find quite a bit of dead code. Would it make any sense to add a config option to enable the spew for those that wanted to see it? David Daney -- 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/