From 2dd4a34961ddff2760de56612630cf1ac5a94ed4 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 19 Oct 2013 22:17:49 +0200 Subject: [PATCH] WUtil: Marked args as unused for compiler in WUtil's API code 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 --- WINGs/bagtree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WINGs/bagtree.c b/WINGs/bagtree.c index bf1ac488..25ac0805 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; }