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

Rémi Denis-Courmont rdenis at simphalempin.com
Thu Mar 20 18:51:44 CET 2008

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.

Rémi Denis-Courmont

More information about the vlc-devel mailing list