[vlc-devel] questions

Devin Heitmueller dheitmueller at kernellabs.com
Mon Aug 17 03:39:18 CEST 2015


On Aug 16, 2015 7:45 PM, "tony" <hugh1234 at mail.ustc.edu.cn> wrote:
>
> May I ask what VLC_UNUSED( i_idx ); means? it should be processed as
> (void)(i_idx);  but is this valid c?

It is used for function arguments that are unused by the function, to
prevent GCC from showing a warning.

The typical use case is a callback function where the caller passes an
argument because it is required by some callbacks implemented but not
others (i.e. the function prototype has to be the same across all
callbacks, even if some don't use all of the function arguments).

Devin
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150816/d6503fac/attachment.html>


More information about the vlc-devel mailing list