[alsa-devel] [PATCH] salsa-lib: Fix error on jack compilation with salsa
Takashi Iwai
tiwai at suse.de
Wed Mar 20 17:37:04 CET 2013
At Sun, 17 Mar 2013 15:13:00 +0000,
Mihail Zenkov wrote:
>
> Fix error on jack compilation with salsa:
> /usr/include/alsa/ctl_macros.h:251:48: error: invalid conversion from
> 'void*' to 'snd_ctl_elem_id_t* {aka snd_ctl_elem_id*}' [-fpermissive]
I don't get it. Is it C++? But I thought the code is in extern "C"
region?
Takashi
>
> --- salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884/src/ctl_macros.h
> +++ salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884-1/src/ctl_macros.h
> @@ -248,7 +248,7 @@
> unsigned int entries)
> {
> free(obj->pids);
> - obj->pids = calloc(entries, sizeof(*obj->pids));
> + obj->pids = (snd_ctl_elem_id_t*)calloc(entries, sizeof(*obj->pids));
> if (!obj->pids) {
> obj->space = 0;
> return -ENOMEM;
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
More information about the Alsa-devel
mailing list