Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753269Ab1DUUJh (ORCPT ); Thu, 21 Apr 2011 16:09:37 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:59532 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170Ab1DUUJg convert rfc822-to-8bit (ORCPT ); Thu, 21 Apr 2011 16:09:36 -0400 MIME-Version: 1.0 In-Reply-To: <20110421195801.GA15126@redhat.com> References: <20110421192117.GA14249@redhat.com> <4DB087EC.1010205@caviumnetworks.com> <1303415086.24766.84.camel@Joe-Laptop> <20110421195801.GA15126@redhat.com> From: Linus Torvalds Date: Thu, 21 Apr 2011 13:09:11 -0700 Message-ID: Subject: Re: annoying new gcc 4.6.0 warnings. To: Dave Jones , Joe Perches , David Daney , Linus Torvalds , Linux Kernel , Andrew Morton , BorislavPetkov 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: 904 Lines: 20 On Thu, Apr 21, 2011 at 12:58 PM, Dave Jones wrote: > @@ -359,7 +359,8 @@ KBUILD_CFLAGS ? := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ > ? ? ? ? ? ? ? ? ? -fno-strict-aliasing -fno-common \ > ? ? ? ? ? ? ? ? ? -Werror-implicit-function-declaration \ > ? ? ? ? ? ? ? ? ? -Wno-format-security \ > - ? ? ? ? ? ? ? ? ?-fno-delete-null-pointer-checks > + ? ? ? ? ? ? ? ? ?-fno-delete-null-pointer-checks \ > + ? ? ? ? ? ? ? ? ?-Wno-unused-but-set-variable Does this work ok for older gcc's? Do they understand that -Wno-unused-by-set-variable? gcc-4.5.1 seems to understand it, but what about much older gccs? Linus -- 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/