From: Takashi Iwai <tiwai@suse.de>
To: Mihail Zenkov <mihail.zenkov@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] salsa-lib: Fix error on jack compilation with salsa
Date: Wed, 20 Mar 2013 17:37:04 +0100 [thread overview]
Message-ID: <s5hr4jagh8v.wl%tiwai@suse.de> (raw)
In-Reply-To: <CAD-m0i9iOmziNL=d0xGaVhb-mj-YjpeHBaitDHUYEgp7yQ5BDw@mail.gmail.com>
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@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
next prev parent reply other threads:[~2013-03-20 16:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-17 15:13 [PATCH] salsa-lib: Fix error on jack compilation with salsa Mihail Zenkov
2013-03-20 16:37 ` Takashi Iwai [this message]
2013-03-30 19:11 ` Gabriel M. Beddingfield
2013-04-02 9:46 ` Takashi Iwai
2013-04-02 11:59 ` Mihail Zenkov
2013-04-03 9:35 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hr4jagh8v.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=mihail.zenkov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox