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).
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel