]> 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 9c1db6a4ba0211ba7df1e86e3b15f9a81684a030..2ef2c6da3168af0eaeaeaba131f74dbc64300d57 100644 (file)
@@ -8,12 +8,12 @@
  */
 static struct swit caches[] = {
 #define CACHE_NEVER    0
  */
 static struct swit caches[] = {
 #define CACHE_NEVER    0
-    { "never", 0 },
+    { "never", 0, 0 },
 #define CACHE_PRIVATE  1
 #define CACHE_PRIVATE  1
-    { "private", 0 },
+    { "private", 0, 0 },
 #define CACHE_PUBLIC   2
 #define CACHE_PUBLIC   2
-    { "public", 0 },
+    { "public", 0, 0 },
 #define CACHE_ASK      3
 #define CACHE_ASK      3
-    { "ask", 0 },
-    { NULL, 0 }
+    { "ask", 0, 0 },
+    { NULL, 0, 0 }
 };
 };
index 29820f300bad5d784315aea246c393763a2765b2..3d247181b5c9c50f03faefc9ef7f6a768407f461 100644 (file)
@@ -64,7 +64,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 
 };
 
 
index 58c613092e1b917c8fea7d25fd2151bdbdce33ec..97714dc412f2d3caa7afc7a5d12f9b0f9d00eac2 100644 (file)
@@ -78,7 +78,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 static char drft[BUFSIZ];
 };
 
 static char drft[BUFSIZ];
index b089dbac1e7585fae6513a4c074e54a4f247e85e..e8d64907cdb63bea01eb583524cc69545bdff2ee 100644 (file)
@@ -88,7 +88,7 @@ static struct swit aqrl[] = {
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
     { "replace", 0, YESW },
     { "list", 0, LISTDSW },
     { "refile +folder", 0, REFILSW },
-    { NULL, 0 }
+    { NULL, 0, 0 }
 };
 
 short ccto = -1;               /* global for replsbr */
 };
 
 short ccto = -1;               /* global for replsbr */