From: David Levine Date: Thu, 10 Jan 2013 14:00:20 +0000 (-0600) Subject: Added explicit third initializer to some swit struct values X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/faa25111ebcaf678a505149b2c227bc077820ae3?hp=-c Added explicit third initializer to some swit struct values to silence gcc -Wmissing-field-initialziers warning. --- faa25111ebcaf678a505149b2c227bc077820ae3 diff --git a/h/mhcachesbr.h b/h/mhcachesbr.h index 9c1db6a4..2ef2c6da 100644 --- a/h/mhcachesbr.h +++ b/h/mhcachesbr.h @@ -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 } }; diff --git a/uip/dist.c b/uip/dist.c index 29820f30..3d247181 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -64,7 +64,7 @@ static struct swit aqrl[] = { { "replace", 0, YESW }, { "list", 0, LISTDSW }, { "refile +folder", 0, REFILSW }, - { NULL, 0 } + { NULL, 0, 0 } }; diff --git a/uip/forw.c b/uip/forw.c index 58c61309..97714dc4 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -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]; diff --git a/uip/repl.c b/uip/repl.c index b089dbac..e8d64907 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -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 */