diff lwlib/xlwcheckbox.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 c33ae14dd6d0
children 4c038e89d563
line wrap: on
line diff
--- a/lwlib/xlwcheckbox.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/lwlib/xlwcheckbox.c	Mon Sep 20 19:20:08 2004 +0000
@@ -221,10 +221,14 @@
 
 /*ARGSUSED*/
 static void
-CheckboxInit (Widget   request,
+CheckboxInit (Widget   UNUSED (request),
+#if DRAW_CHECK
 	      Widget   new,
-	      ArgList  args,
-	      Cardinal *num_args)
+#else
+	      Widget   UNUSED (new),
+#endif
+	      ArgList  UNUSED (args),
+	      Cardinal *UNUSED (num_args))
 {
 #if DRAW_CHECK
     CheckboxWidget cw = (CheckboxWidget) new;
@@ -277,9 +281,14 @@
 
 /* ARGSUSED */
 static void
-CheckboxDestroy (Widget w,
-		 XtPointer junk,
-		 XtPointer garbage)
+CheckboxDestroy (
+#if DRAW_CHECK
+		 Widget w,
+#else
+		 Widget UNUSED (w),
+#endif
+		 XtPointer UNUSED (junk),
+		 XtPointer UNUSED (garbage))
 {
 #if DRAW_CHECK
     CheckboxWidget cw = (CheckboxWidget) w;
@@ -356,8 +365,9 @@
 	Dimension	s = swid(cw);
 	Dimension	bsz = bsize(cw);
 	Position	bx,by ;		/* Check upper-left */
-	Dimension	bw,bh ;
+	Dimension	bh ;
 #ifdef	_ThreeDP_h
+	Dimension	bw;
 	GC		top, bot;
 #endif
 	GC		ctr ;
@@ -365,11 +375,13 @@
 	/* foreground GC */
 	gc = XtIsSensitive(w) ? cw->command.normal_GC : cw->label.gray_GC ;
 
-	bw = bh = bs(cw) ;
+	bh = bs(cw) ;
 	bx = cw->label.internal_width ;
 	by = cw->core.height/2 - bh/2 ;
 
 #ifdef	_ThreeDP_h
+	bw = bh ;
+
 	if( !cw->command.set ) {
 	  top = cw->threeD.top_shadow_GC ;
 	  bot = cw->threeD.bot_shadow_GC ;