* sound/oss/ad1848.c:2867:32: warning: ‘id_table’ defined but not used
@ 2013-06-13 15:23 Tommi Rantala
2013-06-17 7:56 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Tommi Rantala @ 2013-06-13 15:23 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai; +Cc: alsa-devel, LKML
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/
Tommi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sound/oss/ad1848.c:2867:32: warning: ‘id_table’ defined but not used
2013-06-13 15:23 sound/oss/ad1848.c:2867:32: warning: ‘id_table’ defined but not used Tommi Rantala
@ 2013-06-17 7:56 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2013-06-17 7:56 UTC (permalink / raw)
To: Tommi Rantala; +Cc: Jaroslav Kysela, alsa-devel, LKML
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-17 7:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-13 15:23 sound/oss/ad1848.c:2867:32: warning: ‘id_table’ defined but not used Tommi Rantala
2013-06-17 7:56 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®