INN commit: trunk (4 files)

INN Commit rra at isc.org
Thu May 14 13:15:11 UTC 2015


    Date: Thursday, May 14, 2015 @ 06:15:11
  Author: iulius
Revision: 9856

Fixed gcc warnings for missing field 'data' initializer

gcc warns about the new initialization { 0 } (-Wmissing-field-initializers).

Following commit [9851].

Modified:
  trunk/contrib/respool.c
  trunk/frontends/sm.c
  trunk/innd/art.c
  trunk/tests/overview/xref-t.c

-------------------------+
 contrib/respool.c       |    2 +-
 frontends/sm.c          |    2 +-
 innd/art.c              |    2 +-
 tests/overview/xref-t.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Modified: contrib/respool.c
===================================================================
--- contrib/respool.c	2015-05-14 13:13:11 UTC (rev 9855)
+++ contrib/respool.c	2015-05-14 13:15:11 UTC (rev 9856)
@@ -26,7 +26,7 @@
     char *tokenptr;
     int len;
     ARTHANDLE *art;
-    ARTHANDLE newart = { 0 };
+    ARTHANDLE newart = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     TOKEN token, newtoken;
     char *arttmp;
 

Modified: frontends/sm.c
===================================================================
--- frontends/sm.c	2015-05-14 13:13:11 UTC (rev 9855)
+++ frontends/sm.c	2015-05-14 13:15:11 UTC (rev 9856)
@@ -58,7 +58,7 @@
     struct buffer *article;
     size_t size;
     char *text, *start, *end;
-    ARTHANDLE handle = { 0 };
+    ARTHANDLE handle = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     TOKEN token;
 
     /* Build the basic article handle. */

Modified: innd/art.c
===================================================================
--- innd/art.c	2015-05-14 13:13:11 UTC (rev 9855)
+++ innd/art.c	2015-05-14 13:15:11 UTC (rev 9856)
@@ -445,7 +445,7 @@
   ARTDATA	*data = &cp->Data;
   HDRCONTENT	*hc = data->HdrContent;
   const char	*p;
-  ARTHANDLE	arth = { 0 };
+  ARTHANDLE	arth = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
   int		i, j, iovcnt = 0;
   long		headersize = 0;
   TOKEN		result;

Modified: tests/overview/xref-t.c
===================================================================
--- tests/overview/xref-t.c	2015-05-14 13:13:11 UTC (rev 9855)
+++ tests/overview/xref-t.c	2015-05-14 13:15:11 UTC (rev 9856)
@@ -184,7 +184,7 @@
     bool value;
     char *article, *wire;
     size_t size;
-    ARTHANDLE handle = { 0 };
+    ARTHANDLE handle = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     TOKEN token;
 
     if (access("../data/overview/xref", F_OK) == 0)



More information about the inn-committers mailing list