<p dir="ltr">On Aug 16, 2015 7:45 PM, "tony" <<a href="mailto:hugh1234@mail.ustc.edu.cn">hugh1234@mail.ustc.edu.cn</a>> wrote:<br>
><br>
> May I ask what VLC_UNUSED( i_idx ); means? it should be processed as<br>
> (void)(i_idx);  but is this valid c?</p>
<p dir="ltr">It is used for function arguments that are unused by the function, to prevent GCC from showing a warning.</p>
<p dir="ltr">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).</p>
<p dir="ltr">Devin<br>
><br>
> _______________________________________________<br>
> vlc-devel mailing list<br>
> To unsubscribe or modify your subscription options:<br>
> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</p>