diff lwlib/lwlib.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 c2569faae8ed
children facf3239ba30
line wrap: on
line diff
--- a/lwlib/lwlib.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/lwlib/lwlib.c	Mon Sep 20 19:20:08 2004 +0000
@@ -366,7 +366,8 @@
 }
 
 static void
-mark_widget_destroyed (Widget widget, XtPointer closure, XtPointer call_data)
+mark_widget_destroyed (Widget widget, XtPointer closure,
+		       XtPointer UNUSED (call_data))
 {
   widget_instance *instance = (widget_instance*)closure;
 
@@ -512,15 +513,6 @@
   return (s1 && s2) ? strcmp (s1, s2) : s1 ? False : !!s2;
 }
 
-#ifndef WIN32_NATIVE
-static change_type
-max (change_type i1, change_type i2)
-{
-  return (int)i1 > (int)i2 ? i1 : i2;
-}
-#endif
-
-
 #if 0
 # define EXPLAIN(name, oc, nc, desc, a1, a2)				\
    printf ("Change: \"%s\"\tmax(%s=%d,%s=%d)\t%s %d %d\n",		\
@@ -672,8 +664,8 @@
       {
 	EXPLAIN (val1->name, change, merged_next->change, "(following change)",
 		 0, 0);
+	change = max (change, merged_next->change);
       }
-      change = max (change, merged_next->change);
     }
 
   val1->next = merged_next;
@@ -1277,7 +1269,7 @@
   widget_instance. */
 void
 lw_internal_update_other_instances (Widget widget, XtPointer closure,
-				    XtPointer call_data)
+				    XtPointer UNUSED (call_data))
 {
   /* To forbid recursive calls */
   static Boolean updating;
@@ -1341,7 +1333,7 @@
 
 /* Show busy */
 static void
-show_one_widget_busy (Widget w, Boolean flag)
+show_one_widget_busy (Widget w, Boolean UNUSED (flag))
 {
   Pixel foreground = 0;
   Pixel background = 1;