Mercurial > hg > xemacs-beta
diff lwlib/xlwgauge.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 0dfff19d20da |
children | 6c9e392b4307 |
line wrap: on
line diff
--- a/lwlib/xlwgauge.c Mon Sep 20 19:11:29 2004 +0000 +++ b/lwlib/xlwgauge.c Mon Sep 20 19:20:08 2004 +0000 @@ -241,8 +241,8 @@ static void GaugeInit (Widget request, Widget new, - ArgList args, - Cardinal *num_args) + ArgList UNUSED (args), + Cardinal *UNUSED (num_args)) { GaugeWidget gw = (GaugeWidget) new; @@ -366,8 +366,8 @@ /* ARGSUSED */ static void GaugeExpose (Widget w, - XEvent *event, - Region region) + XEvent *UNUSED (event), + Region UNUSED (region)) { GaugeWidget gw = (GaugeWidget) w; register Display *dpy = XtDisplay(w) ; @@ -376,7 +376,6 @@ GC gctop, gcbot ; /* dark, light shadows */ int len ; /* length (width or height) of widget */ - int hgt ; /* height (width) of widget */ int e0,e1 ; /* ends of the gauge */ int x ; int y ; /* vertical (horizontal) position */ @@ -397,10 +396,8 @@ if( gw->gauge.orientation == XtorientHorizontal ) { len = gw->core.width ; - hgt = gw->core.height ; } else { len = gw->core.height ; - hgt = gw->core.width ; } /* if the gauge is selected, signify by drawing the background @@ -503,10 +500,10 @@ static Boolean GaugeSetValues (Widget old, - Widget request, + Widget UNUSED (request), Widget new, - ArgList args, - Cardinal *num_args) + ArgList UNUSED (args), + Cardinal *UNUSED (num_args)) { GaugeWidget oldgw = (GaugeWidget) old; GaugeWidget gw = (GaugeWidget) new; @@ -724,7 +721,7 @@ static void GaugeLoseSel (Widget w, - Atom *selection) /* usually XA_PRIMARY */ + Atom *UNUSED (selection)) /* usually XA_PRIMARY */ { GaugeWidget gw = (GaugeWidget)w ; Display *dpy = XtDisplay(w) ; @@ -742,9 +739,9 @@ static void -GaugeDoneSel (Widget w, - Atom *selection, /* usually XA_PRIMARY */ - Atom *target) /* requested target */ +GaugeDoneSel (Widget UNUSED (w), + Atom *UNUSED (selection), /* usually XA_PRIMARY */ + Atom *UNUSED (target)) /* requested target */ { /* selection done, anything to do? */ } @@ -775,8 +772,8 @@ Atom *selection, Atom *type, XtPointer value, - unsigned long *length, - int *format) + unsigned long *UNUSED (length), + int *UNUSED (format)) { Display *dpy = XtDisplay(w) ; Atom target = (Atom)client ; @@ -1108,7 +1105,7 @@ static void GaugeGetValue (XtPointer clientData, - XtIntervalId *intervalId) + XtIntervalId *UNUSED (intervalId)) { GaugeWidget gw = (GaugeWidget)clientData ; Cardinal value ;