From faa25111ebcaf678a505149b2c227bc077820ae3 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 10 Jan 2013 08:00:20 -0600 Subject: [PATCH] Added explicit third initializer to some swit struct values to silence gcc -Wmissing-field-initialziers warning. --- h/mhcachesbr.h | 10 +++++----- uip/dist.c | 2 +- uip/forw.c | 2 +- uip/repl.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) 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 */ -- 2.56.0