From 90745e4d60c6ce07476974d8c40ffd8f8e03a977 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 7 Oct 2012 18:10:11 -0400 Subject: [PATCH] regressions/ck_ring: Silence GCC false positives. --- regressions/ck_ring/validate/ck_ring_spmc_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regressions/ck_ring/validate/ck_ring_spmc_template.c b/regressions/ck_ring/validate/ck_ring_spmc_template.c index e5cbddf..da64f97 100644 --- a/regressions/ck_ring/validate/ck_ring_spmc_template.c +++ b/regressions/ck_ring/validate/ck_ring_spmc_template.c @@ -132,8 +132,8 @@ test(void *c) } for (i = 0; i < size; i++) { + memset(&entry, 0, sizeof(entry)); entry.value = i; - entry.tid = 0; r = CK_RING_ENQUEUE_SPMC(spmc_ring, ring, &entry); assert(r != false);