mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
avoid the compile warnings (about cast) with the recent GCC.
This commit is contained in:
parent
4032563aad
commit
253b58bc03
1 changed files with 3 additions and 1 deletions
|
|
@ -865,6 +865,7 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
|
||||||
{
|
{
|
||||||
snd_pcm_info_t *info;
|
snd_pcm_info_t *info;
|
||||||
const char *id;
|
const char *id;
|
||||||
|
void *data;
|
||||||
snd_pcm_t *pcm;
|
snd_pcm_t *pcm;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
|
@ -875,7 +876,8 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
|
||||||
SNDERR("field pcm_handle not found");
|
SNDERR("field pcm_handle not found");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
err = snd_config_get_pointer(private_data, (const void **)&pcm);
|
err = snd_config_get_pointer(private_data, &data);
|
||||||
|
pcm = data;
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
SNDERR("field pcm_handle is not a pointer");
|
SNDERR("field pcm_handle is not a pointer");
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue