[vlc-devel] commit: Put (void)val; here and there to tell gcc we used the variable. ( Sam Hocevar )

Jean-Baptiste Kempf jb at videolan.org
Thu Mar 20 18:56:32 CET 2008

On Thu, Mar 20, 2008, Rémi Denis-Courmont wrote :
> Le Thursday 20 March 2008 19:45:07 git version control, vous avez écrit :
> > The spin_lock wrappers do not use the return value of the functions they
> > wrap, resulting in dozens of compiler warnings because they are inline
> > functions. There is no elegant solution to this, I hope using (void)val;
> > is the least shocking alternative.
> Yeah. Fenrir prefers VLC_UNUSED(val), I prefer the plain (void)val.
> Choose your side.
Which one is the dark one ?

Best Regards,

Jean-Baptiste Kempf

More information about the vlc-devel mailing list