From a2335a763fc84af677aeaebfca49d9e5ad372d4f Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Tue, 18 May 2010 09:40:36 -0500 Subject: [PATCH] maybe unused annotations --- src/wxxt/src/XWidgets/xwBoard.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wxxt/src/XWidgets/xwBoard.c b/src/wxxt/src/XWidgets/xwBoard.c index b6ac8c0060..32688b5c61 100644 --- a/src/wxxt/src/XWidgets/xwBoard.c +++ b/src/wxxt/src/XWidgets/xwBoard.c @@ -7,6 +7,13 @@ #include #include #include <./xwBoardP.h> + +#ifdef __GNUC__ +#define MAYBE_UNUSED __attribute__((unused)) +#else +#define MAYBE_UNUSED +#endif + static void _resolve_inheritance( #if NeedFunctionPrototypes WidgetClass @@ -446,7 +453,7 @@ static XtGeometryResult geometry_manager(Widget child,XtWidgetGeometry * reque #else static XtGeometryResult geometry_manager(child,request,reply)Widget child;XtWidgetGeometry * request;XtWidgetGeometry * reply; #endif -{ Widget self = XtParent(child); { +{ MAYBE_UNUSED Widget self = XtParent(child); { /* Widget $ = XtParent(child); */ Dimension wd, ht, bw; Position x, y;