File warn.patch of Package openmotif

--- demos/programs/ColorSel/util-c.c
+++ demos/programs/ColorSel/util-c.c
@@ -3468,6 +3468,8 @@
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }
 
@@ -3489,6 +3491,8 @@
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }
 
--- demos/programs/Ext18List/util-c.c
+++ demos/programs/Ext18List/util-c.c
@@ -3468,6 +3468,8 @@
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }
 
@@ -3489,6 +3491,8 @@
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }
 
--- demos/programs/FontSel/fontsel.c
+++ demos/programs/FontSel/fontsel.c
@@ -122,5 +122,6 @@
     XtRealizeWidget(top);
 
     XtAppMainLoop(app);
+    return 0;
 }
 
--- demos/programs/IconB/misc.c
+++ demos/programs/IconB/misc.c
@@ -3440,6 +3440,8 @@
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }
 
@@ -3461,6 +3463,8 @@
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }
 
--- demos/programs/Tree/bxutil-c.c
+++ demos/programs/Tree/bxutil-c.c
@@ -3469,6 +3469,7 @@
         }
         return (c);
     }
+    abort();
 }
 
 
@@ -3490,6 +3491,7 @@
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
     }
+    abort();
 }
 
 /*
--- lib/Xm/XmString.c
+++ lib/Xm/XmString.c
@@ -7962,8 +7962,7 @@
     case XmMULTIBYTE_TEXT:
       /* Non-NULL values (except _MOTIF_DEFAULT_LOCALE)
          are not accepted in Motif 2.0. */
-      if (tag != NULL && !(tag == _MOTIF_DEFAULT_LOCALE ||
-			   strcmp(tag, _MOTIF_DEFAULT_LOCALE) == 0))
+      if (tag != NULL && !(strcmp(tag, _MOTIF_DEFAULT_LOCALE) == 0))
       {
 	_XmProcessUnlock();
 	return NULL;
@@ -8572,8 +8571,7 @@
 	_XmProcessUnlock();
 	return NULL;
       }
-      if ((value != _MOTIF_DEFAULT_LOCALE) &&
-	  (strcmp((char*) value, _MOTIF_DEFAULT_LOCALE) != 0)) {
+      if ((strcmp((char*) value, _MOTIF_DEFAULT_LOCALE) != 0)) {
 	_XmProcessUnlock();
 	return NULL;
       }
--- tools/wml/wmlresolve.c
+++ tools/wml/wmlresolve.c
@@ -69,6 +69,7 @@
 
 #if defined(__STDC__)
 #include <stdlib.h>
+#include <string.h>
 #endif
 #include <stdio.h>