Print this page
7127  remove -Wno-missing-braces from Makefile.uts

@@ -1494,11 +1494,11 @@
         int rval = 0;
         union {
                 struct sockaddr sin;
                 struct sockaddr_in s_in4;
                 struct sockaddr_in6 s_in6;
-        } sa_rsvr = { 0 };
+        } sa_rsvr = {{0}};
         void *so;
         struct sockaddr_in6     t_addr;
         socklen_t               t_addrlen;
 
         bzero(&t_addr, sizeof (struct sockaddr_in6));

@@ -2980,11 +2980,11 @@
         socklen_t               t_addrlen;
         union {
                 struct sockaddr sin;
                 struct sockaddr_in s_in4;
                 struct sockaddr_in6 s_in6;
-        } clnt_addr = { 0 };
+        } clnt_addr = {{0}};
         union {
                 struct sockaddr_in      soa4;
                 struct sockaddr_in6     soa6;
         } local_conn_prop;
         void *listening_so, *connecting_so;

@@ -3098,11 +3098,11 @@
 find_listening_addr(iscsi_addr_t *local_addr, void *listening_so)
 {
         union {
                 struct sockaddr_in      soa4;
                 struct sockaddr_in6     soa6;
-        } local_conn_prop = { 0 };
+        } local_conn_prop = {{0}};
 
         struct sockaddr_in6     t_addr;
         socklen_t               t_addrlen;
 
         if (local_addr == NULL || listening_so == NULL) {

@@ -3140,16 +3140,16 @@
     iscsi_addr_t **local_addr, void **listening_so)
 {
         union {
                 struct sockaddr_in      soa4;
                 struct sockaddr_in6     soa6;
-        } local_conn_prop = { 0 };
+        } local_conn_prop = {{0}};
         union {
                 struct sockaddr sin;
                 struct sockaddr_in s_in4;
                 struct sockaddr_in6 s_in6;
-        } serv_addr = { 0 };
+        } serv_addr = {{0}};
         void *so;
         struct sockaddr_in6     t_addr;
         socklen_t               t_addrlen;
 
         if (listening_so == NULL) {