[alsa-devel] [PATCH 1/2] mixer: explicit casts from void * to other pointer type

Takashi Iwai tiwai at suse.de
Thu Jul 13 23:04:08 CEST 2017


On Thu, 13 Jul 2017 22:16:49 +0200,
Felix H4dicke wrote:
> 
> On 07/12/17 22:38, Takashi Iwai wrote:
> > On Wed, 12 Jul 2017 22:31:13 +0200,
> > Felix Hädicke wrote:
> >> g++ does not allow implicit casting of void * to another pointer type
> >> (at least not without -fpermissive)
> > It's a known issue, and intentionally ignored.  Cast is just ugly.
> > The salsa-lib headers are for C, not for C++, after all.
> What is wrong with using salsa-lib it in a C++ project?
> Is it really not desinged for being used from C++ code?

I'm not interested in it, that's all.
If it were about alsa-lib, I would accept the changes.  But salsa-lib
is really not meant as a generic library for every use case.


thanks,

Takashi


More information about the Alsa-devel mailing list