Skip to contentSkip to conversation

Compile warnings, sound.c

DISCUSSION Alan Horstmann 2 participants 2 messages May 18, 2006 – May 19, 2006

lore
Share & tools
lore
#0 lore raw

For quite a while (including prior to 1.0.11) I have noticed these compile warnings. Are they harmless? Kernel is 2.4.21-99.

sound.c: In function `snd_open':
sound.c:175: warning: assignment discards qualifiers from pointer target type sound.c:180: warning: assignment discards qualifiers from pointer target type /usr/share/alsa1.0.11/alsa-driver-1.0.11/include/platform_device_compat.h: At top level:
sound.c:43: warning: `device_mode' defined but not used
rm -f snd.o
ld -r -o snd.o sound.o init.o memory.o info.o control.o misc.o device.o isadma.o sound_oss.o info_oss.o wrappers.o mis

Thanks Alan

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#1 lore raw

At Thu, 18 May 2006 22:44:04 +0100,

Quoted 3 lines · Alan Horstmann

For quite a while (including prior to 1.0.11) I have noticed these compile warnings. Are they harmless? Kernel is 2.4.21-99.

Yes, they are harmless and won't appear when compiled with the latest kernel tree.

Takashi

Quoted 12 lines

sound.c: In function `snd_open':
sound.c:175: warning: assignment discards qualifiers from pointer target type sound.c:180: warning: assignment discards qualifiers from pointer target type /usr/share/alsa1.0.11/alsa-driver-1.0.11/include/platform_device_compat.h: At top level:
sound.c:43: warning: `device_mode' defined but not used
rm -f snd.o
ld -r -o snd.o sound.o init.o memory.o info.o control.o misc.o device.o isadma.o sound_oss.o info_oss.o wrappers.o mis

Quoted 2 lines

Thanks Alan

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642