From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761054AbXGWK0V (ORCPT ); Mon, 23 Jul 2007 06:26:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762766AbXGWKZy (ORCPT ); Mon, 23 Jul 2007 06:25:54 -0400 Received: from ns1.suse.de ([195.135.220.2]:46640 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761099AbXGWKZx (ORCPT ); Mon, 23 Jul 2007 06:25:53 -0400 Date: Mon, 23 Jul 2007 12:25:51 +0200 Message-ID: From: Takashi Iwai To: Gabriel C Cc: Linux Kernel Mailing List , Jaroslav Kysela Subject: Re: sound/core/init.c - address of 'snd_shutdown_f_ops' will always evaluate as 'true' , warning In-Reply-To: <46A3F9B1.9070207@googlemail.com> References: <46A3F9B1.9070207@googlemail.com> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta27) (fiddleheads) (+CVS-20060704) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org At Mon, 23 Jul 2007 02:43:29 +0200, Gabriel C wrote: > > Hi, > > I got this warning on current git using gcc 4.2.1: > > ... > > sound/core/init.c: In function 'snd_card_disconnect': > sound/core/init.c:307: warning: the address of 'snd_shutdown_f_ops' will always evaluate as 'true' > > ... Yeah, gcc 4.2 is too verbose about this unnecessary warning... Takashi