From e0faec180004afb9a68ffe7dffce591f0dec305f Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Mon, 24 May 2010 11:00:02 -0700 Subject: Remove redundant initilization to get rid of gcc-4.5 warning: warning: operation on 'sig_inObj->int_vec38' may be undefined [-Wsequence-point] The source code has cyclic initilization: a = c = b = c. gcc-4.5 reports a warning that c may be undefined. The patch is simply removing the redundant "= c". Tested the patch with all gcc versions. Change-Id: I4a6e9ee22b41058a34b0a657fb60e78c4e8f3ebb --- pico/lib/picosig2.c | 1 - 1 file changed, 1 deletion(-) (limited to 'pico') diff --git a/pico/lib/picosig2.c b/pico/lib/picosig2.c index 11a606a..b3d2c7b 100644 --- a/pico/lib/picosig2.c +++ b/pico/lib/picosig2.c @@ -81,7 +81,6 @@ pico_status_t sigAllocate(picoos_MemoryManager mm, sig_innerobj_t *sig_inObj) sig_inObj->int_vec35 = sig_inObj->int_vec36 = sig_inObj->int_vec37 = - sig_inObj->int_vec38 = sig_inObj->int_vec39 = sig_inObj->int_vec40 = NULL; -- cgit v1.1