From fa08d5e7122936f2adc73babf3ff83608d07620c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 25 Feb 2017 12:54:36 +0000 Subject: [PATCH] Fix an initialization warning (GCC bug 53119) --- src/revocation/gnunet-service-revocation.c | 4 ++-- src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | 2 +- src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c | 2 +- src/scalarproduct/gnunet-service-scalarproduct_alice.c | 2 +- src/scalarproduct/gnunet-service-scalarproduct_bob.c | 2 +- src/set/gnunet-service-set_union.c | 2 +- src/set/gnunet-set-profiler.c | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index b5669d9ea..0ac963f63 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c @@ -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 != diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c index 34149435c..b7b839b6f 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c @@ -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) diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c index db8241bb7..8a5b3a5b2 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c @@ -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 != diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index f99ff6168..697baa9bd 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c @@ -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) diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index efc3bc8ea..5d2df017b 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c @@ -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 != diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index ab39a2e8a..5c8a2eb0c 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c @@ -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; diff --git a/src/set/gnunet-set-profiler.c b/src/set/gnunet-set-profiler.c index 971d9746a..cfbb5602a 100644 --- a/src/set/gnunet-set-profiler.c +++ b/src/set/gnunet-set-profiler.c @@ -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; -- 2.25.1