Fix an initialization warning (GCC bug 53119)
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 25 Feb 2017 12:54:36 +0000 (12:54 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 25 Feb 2017 21:03:41 +0000 (21:03 +0000)
src/revocation/gnunet-service-revocation.c
src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c
src/scalarproduct/gnunet-service-scalarproduct_alice.c
src/scalarproduct/gnunet-service-scalarproduct_bob.c
src/set/gnunet-service-set_union.c
src/set/gnunet-set-profiler.c

index b5669d9ea8314fbb098cfd470af7054c4bd56bb0..0ac963f6360f8be15a6d4e22e1c476494880fcf1 100644 (file)
@@ -509,7 +509,7 @@ transmit_task_cb (void *cls)
                                        &revocation_set_union_app_id,
                                        NULL,
                                        GNUNET_SET_RESULT_ADDED,
-                                       (struct GNUNET_SET_Option[]) { 0 },
+                                       (struct GNUNET_SET_Option[]) {{ 0 }},
                                        &add_revocation,
                                        peer_entry);
   if (GNUNET_OK !=
@@ -756,7 +756,7 @@ handle_revocation_union_request (void *cls,
   }
   peer_entry->so = GNUNET_SET_accept (request,
                                       GNUNET_SET_RESULT_ADDED,
-                                      (struct GNUNET_SET_Option[]) { 0 },
+                                      (struct GNUNET_SET_Option[]) {{ 0 }},
                                       &add_revocation,
                                       peer_entry);
   if (GNUNET_OK !=
index 34149435c7cfc5bc0a00357142833b6dfef44c9f..b7b839b6f518349e6e3b55c43994b9172168aff2 100644 (file)
@@ -788,7 +788,7 @@ cb_intersection_request_alice (void *cls,
   s->intersection_op
     = GNUNET_SET_accept (request,
                          GNUNET_SET_RESULT_REMOVED,
-                         (struct GNUNET_SET_Option[]) { 0 },
+                         (struct GNUNET_SET_Option[]) {{ 0 }},
                          &cb_intersection_element_removed,
                          s);
   if (NULL == s->intersection_op)
index db8241bb7b69ca0474715b51d647690ff96cc6f0..8a5b3a5b2459326f478317890cda123f4c3194fd 100644 (file)
@@ -670,7 +670,7 @@ start_intersection (struct BobServiceSession *s)
                           &set_sid,
                           NULL,
                           GNUNET_SET_RESULT_REMOVED,
-                          (struct GNUNET_SET_Option[]) { 0 },
+                          (struct GNUNET_SET_Option[]) {{ 0 }},
                           &cb_intersection_element_removed,
                           s);
   if (GNUNET_OK !=
index f99ff616851c23348090ac7386bfcc733b2c723c..697baa9bd51d71f65fde7e21cf715511443a9fdb 100644 (file)
@@ -1022,7 +1022,7 @@ cb_intersection_request_alice (void *cls,
   s->intersection_op
     = GNUNET_SET_accept (request,
                          GNUNET_SET_RESULT_REMOVED,
-                         (struct GNUNET_SET_Option[]) { 0 },
+                         (struct GNUNET_SET_Option[]) {{ 0 }},
                          &cb_intersection_element_removed,
                          s);
   if (NULL == s->intersection_op)
index efc3bc8ea8db65a8957250c7f65824331dedbb91..5d2df017b3a2a6eee71c75061548b3eac50ac570 100644 (file)
@@ -964,7 +964,7 @@ start_intersection (struct BobServiceSession *s)
                           &s->session_id,
                           NULL,
                           GNUNET_SET_RESULT_REMOVED,
-                          (struct GNUNET_SET_Option[]) { 0 },
+                          (struct GNUNET_SET_Option[]) {{ 0 }},
                           &cb_intersection_element_removed,
                           s);
   if (GNUNET_OK !=
index ab39a2e8af7630a27427fabe8a4bbc65c3b5dfba..5c8a2eb0c7d0bbcce5e4fc14318cfedf0561d756 100644 (file)
@@ -448,7 +448,7 @@ op_get_element (struct Operation *op,
 {
   int ret;
   struct IBF_Key ibf_key;
-  struct GetElementContext ctx = { 0 };
+  struct GetElementContext ctx = {{{ 0 }} , 0};
 
   ctx.hash = *element_hash;
 
index 971d9746ad65a242788d5aa34b6e4a66fbb926c0..cfbb5602a2d7fcf941a3f34e1df3ceff2752bece 100644 (file)
@@ -220,7 +220,7 @@ set_listen_cb (void *cls,
                struct GNUNET_SET_Request *request)
 {
   /* max. 2 options plus terminator */
-  struct GNUNET_SET_Option opts[3] = {0};
+  struct GNUNET_SET_Option opts[3] = {{0}};
   unsigned int n_opts = 0;
 
   if (NULL == request)
@@ -316,7 +316,7 @@ run (void *cls,
   unsigned int i;
   struct GNUNET_HashCode hash;
   /* max. 2 options plus terminator */
-  struct GNUNET_SET_Option opts[3] = {0};
+  struct GNUNET_SET_Option opts[3] = {{0}};
   unsigned int n_opts = 0;
 
   config = cfg;