Skip to contentSkip to conversation

alsa-lib: fix various warnings

alsa-cvslog Takashi Iwai 2 participants 2 messages Oct 6, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

At Fri, 6 Oct 2006 13:18:39 +0200 (CEST),

Quoted 11 lines · Jaroslav Kysela
changeset:   2219:1de4320f21cc1bd5d4fdcf0aa9f022c66954547c
tag:         tip
user:        perex
date:        Fri Oct 06 13:18:34 2006 +0200
files:       include/global.h src/control/control_ext.c src/pcm/pcm_direct.c src/pcm/pcm_hooks.c src/pcm/pcm_meter.c

description:
fix various warnings
See also ALSA bug#1689

(snip)

Quoted 6 lines

diff -r 603411fd0c77712cab43cdd5afcf0ff4ebe51a7f -r 1de4320f21cc1bd5d4fdcf0aa9f022c66954547c src/control/control_ext.c

src/control/control_ext.c +0 -0
@@ -142,9 +142,9 @@ static int snd_ctl_ext_elem_info(snd_ctl
 		{
 			int64_t xmin, xmax, xstep;

src/control/control_ext.c static int snd_ctl_ext_elem_info(snd_ctl · line 150

Quoted 10 lines
src/control/control_ext.c +3 -3
 			ret = ext->callback->get_integer64_info(ext, key,
-								&xmin,
-								&xmax,
-								&xstep);
+								(int64_t *)&xmin,
+								(int64_t *)&xmax,
+								(int64_t *)&xstep);
 			info->value.integer64.min = xmin;
 			info->value.integer64.max = xmax;
 			info->value.integer64.step = xstep;

This change is nonsense. The relevant warnings were already fixed.

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#2 lore raw
Quoted 11 lines · Takashi Iwai

(snip)

Quoted 10 lines

diff -r 603411fd0c77712cab43cdd5afcf0ff4ebe51a7f -r 1de4320f21cc1bd5d4fdcf0aa9f022c66954547c src/control/control_ext.c

src/control/control_ext.c +0 -3
@@ -142,9 +142,9 @@ static int snd_ctl_ext_elem_info(snd_ctl
 		{
 			int64_t xmin, xmax, xstep;
 			ret = ext->callback->get_integer64_info(ext, key,
-								&xmin,
-								&xmax,
-								&xstep);
Quoted 8 lines

src/control/control_ext.c static int snd_ctl_ext_elem_info(snd_ctl · line 150

Quoted 6 lines
src/control/control_ext.c +3 -0
+								(int64_t *)&xmin,
+								(int64_t *)&xmax,
+								(int64_t *)&xstep);
 			info->value.integer64.min = xmin;
 			info->value.integer64.max = xmax;
 			info->value.integer64.step = xstep;

This change is nonsense. The relevant warnings were already fixed.

Yes, you're right. My brain was in another dimension :-) Reverted.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV