Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932222Ab3FQH4N (ORCPT ); Mon, 17 Jun 2013 03:56:13 -0400 Received: from cantor2.suse.de ([195.135.220.15]:56014 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755934Ab3FQH4L (ORCPT ); Mon, 17 Jun 2013 03:56:11 -0400 Date: Mon, 17 Jun 2013 09:56:34 +0200 Message-ID: From: Takashi Iwai To: Tommi Rantala Cc: Jaroslav Kysela , alsa-devel@alsa-project.org, LKML Subject: Re: sound/oss/ad1848.c:2867:32: warning: =?UTF-8?B?4oCYaWRfdGFi?= =?UTF-8?B?bGXigJk=?= defined but not used In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 33 At Thu, 13 Jun 2013 18:23:02 +0300, Tommi Rantala wrote: > > Hello, I'm seeing the following compiler warning, does it look useful? > I'm doing a v3.10-rc5 x86-64 build. > > /build/linux/sound/oss/ad1848.c:2867:32: warning: ‘id_table’ defined > but not used [-Wunused-variable] > > $ gcc --version > gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 > Copyright (C) 2012 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > config: > http://fpaste.org/18443/13711363/ It's because CONFIG_ISAPNP isn't set (it's optional). You can add ifdef to hide the warning, but it makes the code uglier, OTOH. Since this driver is a legacy one and almost no one uses it, better to save your time for more useful things, I'd say :) thanks, Takashi -- 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/