From: Christophe CURIS <[email protected]> There are a few function in WING's API that take parameter for consistency reason and for possible future evolution, but actually do not need the argument.
As they are 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/wmenuitem.c | 3 +++ WINGs/wtext.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/WINGs/wmenuitem.c b/WINGs/wmenuitem.c index 1f51bca..ac813c5 100644 --- a/WINGs/wmenuitem.c +++ b/WINGs/wmenuitem.c @@ -33,6 +33,9 @@ WMMenuItem *WMGetSeparatorMenuItem(void) Bool WMMenuItemIsSeparator(WMMenuItem * item) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) item; + return False; } diff --git a/WINGs/wtext.c b/WINGs/wtext.c index e9053cd..80295bc 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -3473,6 +3473,10 @@ static void destroyWidget(WMWidget * widget) void WMDestroyTextBlock(WMText * tPtr, void *vtb) { TextBlock *tb = (TextBlock *) vtb; + + /* Parameter not used, but tell the compiler that it is ok */ + (void) tPtr; + if (!tb) return; -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
