[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/12] audio: expose drv_opaque to init_out and
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 05/12] audio: expose drv_opaque to init_out and init_in |
Date: |
Tue, 02 Jun 2015 17:24:38 +0200 |
On Di, 2015-06-02 at 12:03 +0200, Kővágó Zoltán wrote:
> 2015-06-02 09:56 keltezéssel, Gerd Hoffmann írta:
> >> -static int alsa_init_out (HWVoiceOut *hw, struct audsettings *as)
> >> +static int alsa_init_out(HWVoiceOut *hw, struct audsettings *as,
> >> + void *drv_opaque)
> >> {
> >> ALSAVoiceOut *alsa = (ALSAVoiceOut *) hw;
> >> struct alsa_params_req req;
> >> @@ -827,6 +828,8 @@ static int alsa_init_out (HWVoiceOut *hw, struct
> >> audsettings *as)
> >> snd_pcm_t *handle;
> >> struct audsettings obt_as;
> >>
> >> + (void) drv_opaque;
> >> +
> >
> > What is the reason for this?
>
> To silence compiler warnings about unused variables.
That should not happen for parameters (only for local variables).
> I've seen it around
> different places in the code. But if they are just historic remains,
> I'll remove them.
Yes, please.
thanks,
Gerd
- [Qemu-devel] [PATCH 00/12] Audio backend cleanup, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 03/12] audio: remove sdl backend, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 06/12] alsaaudio: do not use global variables, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 07/12] paaudio: do not use global variables, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 02/12] audio: remove fmod backend, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 08/12] ossaudio: do not use global variables, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 04/12] audio: remove winwave audio driver, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 09/12] wavaudio: do not use global variables, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 11/12] paaudio: fix possible resource leak, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 10/12] dsoundaudio: do not use global variables, Kővágó, Zoltán, 2015/06/01
- [Qemu-devel] [PATCH 12/12] coreaudio: do not use global variables where possible, Kővágó, Zoltán, 2015/06/01