diff lwlib/xlwcheckbox.c @ 3072:4c038e89d563

[xemacs-hg @ 2005-11-16 07:22:37 by stephent] Assorted minor fixes. TODO comment in configure.ac: <87irutytzq.fsf@tleepslib.sk.tsukuba.ac.jp> Avoid warning, don't redefine integer types on Mac OS X: <87ek5hytvq.fsf@tleepslib.sk.tsukuba.ac.jp> Fix uninitialized variable: <87acg5yttp.fsf@tleepslib.sk.tsukuba.ac.jp> Eliminate warnings for unused parameters and functions: <8764qtytrp.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet byte-compiler in select.el: <871x1hytow.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet compiler about unused parameters in sound.el: <87wtj9xf16.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 16 Nov 2005 07:22:46 +0000
parents 04bc9d2f42c7
children 383ab474a241
line wrap: on
line diff
--- a/lwlib/xlwcheckbox.c	Wed Nov 16 07:14:16 2005 +0000
+++ b/lwlib/xlwcheckbox.c	Wed Nov 16 07:22:46 2005 +0000
@@ -225,13 +225,13 @@
 #if DRAW_CHECK
 	      Widget   new,
 #else
-	      Widget   UNUSED (new),
+	      Widget   UNUSED (new_),
 #endif
 	      ArgList  UNUSED (args),
 	      Cardinal *UNUSED (num_args))
 {
 #if DRAW_CHECK
-    CheckboxWidget cw = (CheckboxWidget) new;
+    CheckboxWidget cw = (CheckboxWidget) new_;
     cw->checkbox.checkmark = None ;
     cw->checkbox.checkmark_GC = None ;
 #endif
@@ -280,17 +280,13 @@
  */
 
 /* ARGSUSED */
+#if DRAW_CHECK
 static void
 CheckboxDestroy (
-#if DRAW_CHECK
 		 Widget w,
-#else
-		 Widget UNUSED (w),
-#endif
 		 XtPointer UNUSED (junk),
 		 XtPointer UNUSED (garbage))
 {
-#if DRAW_CHECK
     CheckboxWidget cw = (CheckboxWidget) w;
 
     /* TODO: cache this via xmu */
@@ -298,8 +294,8 @@
       XFreePixmap( XtDisplay(w), cw->checkbox.checkmark ) ;
     if( cw->checkbox.checkmark_GC != None )
       XtReleaseGC(w, cw->checkbox.checkmark_GC) ;
-#endif
 }
+#endif /* DRAW_CHECK */