]> diplodocus.org Git - nmh/commitdiff
Added explicit third initializer to some swit struct values
authorDavid Levine <levinedl@acm.org>
Thu, 10 Jan 2013 14:00:20 +0000 (08:00 -0600)
committerDavid Levine <levinedl@acm.org>
Thu, 10 Jan 2013 14:00:20 +0000 (08:00 -0600)
to silence gcc -Wmissing-field-initialziers warning.

h/mhcachesbr.h
uip/dist.c
uip/forw.c
uip/repl.c

index 9c1db6a..2ef2c6d 100644 (file)
@@ -8,12 +8,12 @@
  */
 static struct swit caches[] = {
 #define CACHE_NEVER    0
-    { "never", 0 },
+    { "never", 0, 0 },
 #define CACHE_PRIVATE  1
-    { "private", 0 },
+    { "private", 0, 0 },
 #define CACHE_PUBLIC   2
-    { "public", 0 },
+    { "public", 0, 0 },
 #define CACHE_ASK      3
-    { "ask", 0 },
-    { NULL, 0 }
+    { "ask", 0, 0 },
+    { NULL, 0, 0 }
 };
index 29820f3..3d24718 100644 (file)
@@ -64,7 +64,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 
index 58c6130..97714dc 100644 (file)
@@ -78,7 +78,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 static char drft[BUFSIZ];
index b089dba..e8d6490 100644 (file)
@@ -88,7 +88,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 short ccto = -1;               /* global for replsbr */