maybe unused annotations

This commit is contained in:
Jay McCarthy 2010-05-18 09:40:36 -05:00
parent dd5e574747
commit a2335a763f

View File

@ -7,6 +7,13 @@
#include <X11/Shell.h> #include <X11/Shell.h>
#include <ctype.h> #include <ctype.h>
#include <./xwBoardP.h> #include <./xwBoardP.h>
#ifdef __GNUC__
#define MAYBE_UNUSED __attribute__((unused))
#else
#define MAYBE_UNUSED
#endif
static void _resolve_inheritance( static void _resolve_inheritance(
#if NeedFunctionPrototypes #if NeedFunctionPrototypes
WidgetClass WidgetClass
@ -446,7 +453,7 @@ static XtGeometryResult geometry_manager(Widget child,XtWidgetGeometry * reque
#else #else
static XtGeometryResult geometry_manager(child,request,reply)Widget child;XtWidgetGeometry * request;XtWidgetGeometry * reply; static XtGeometryResult geometry_manager(child,request,reply)Widget child;XtWidgetGeometry * request;XtWidgetGeometry * reply;
#endif #endif
{ Widget self = XtParent(child); { { MAYBE_UNUSED Widget self = XtParent(child); {
/* Widget $ = XtParent(child); */ /* Widget $ = XtParent(child); */
Dimension wd, ht, bw; Dimension wd, ht, bw;
Position x, y; Position x, y;