chiark / gitweb /
Kill some spurious warnings.
authormdw <mdw>
Sun, 13 Jan 2002 14:43:41 +0000 (14:43 +0000)
committermdw <mdw>
Sun, 13 Jan 2002 14:43:41 +0000 (14:43 +0000)
xgetline.c

index 1e060ccfae5865e67ca3700cf21b97b1d37d71cb..c9370c85f8b9982cfc686a345ff40fef4dac1f24 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: xgetline.c,v 1.11 1999/08/20 07:30:33 mdw Exp $
+ * $Id: xgetline.c,v 1.12 2002/01/13 14:43:41 mdw Exp $
  *
  * Fetch a line of text from the user
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: xgetline.c,v $
+ * Revision 1.12  2002/01/13 14:43:41  mdw
+ * Kill some spurious warnings.
+ *
  * Revision 1.11  1999/08/20 07:30:33  mdw
  * Miscellaneous changes, mostly concerning options parsing.
  *
@@ -179,14 +182,12 @@ int main(int argc, char *argv[])
 
   const char *list = 0;
   int histmax = 20;
-  GList *hist;
+  GList *hist = 0;
 
-  enum {
-    f_invis = 1,
-    f_duff = 2,
-    f_history = 4,
-    f_nochoice = 8
-  };
+#define f_invis 1u
+#define f_duff 2u
+#define f_history 4u
+#define f_nochoice 8u
 
   /* --- User interface bits --- */
 
@@ -351,7 +352,6 @@ Options available are:\n\
      * Inability to open the file is not a disaster.
      */
 
-    hist = 0;
     if (fp) {
       dstr d = DSTR_INIT;