From: Christophe CURIS <[email protected]> There is a function in WUtil's API that take a parameter for consistency reason, but actually does not need the argument.
As it is a case we know about, this patch adds the appropriate stuff to tell the compiler we are ok with this to avoid a false report. Signed-off-by: Christophe CURIS <[email protected]> --- WINGs/bagtree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WINGs/bagtree.c b/WINGs/bagtree.c index bf1ac48..25ac080 100644 --- a/WINGs/bagtree.c +++ b/WINGs/bagtree.c @@ -758,5 +758,8 @@ void *WMBagIteratorAtIndex(WMBag * self, int index, WMBagIterator * ptr) int WMBagIndexForIterator(WMBag * bag, WMBagIterator ptr) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) bag; + return ((W_Node *) ptr)->index; } -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
