From: Marek Vasut Date: Fri, 21 Oct 2011 14:17:31 +0000 (+0000) Subject: GCC4.6: Squash error in cpc45/pd67290.c X-Git-Tag: v2011.12-rc1~379 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17f5f1e23fd108d698242ea1bc6c681dc03df73b;p=u-boot GCC4.6: Squash error in cpc45/pd67290.c pd67290.c: In function 'cirrus_set_opts': pd67290.c:282: error: 'buf' undeclared (first use in this function) pd67290.c:282: error: (Each undeclared identifier is reported only once pd67290.c:282: error: for each function it appears in.) Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- diff --git a/board/cpc45/pd67290.c b/board/cpc45/pd67290.c index 0d8ef23368..815e4bae45 100644 --- a/board/cpc45/pd67290.c +++ b/board/cpc45/pd67290.c @@ -225,11 +225,7 @@ static u_int cirrus_set_opts (socket_info_t * s) { cirrus_state_t *p = &s->c_state; u_int mask = 0xffff; -#if DEBUG - char buf[200]; - - memset (buf, 0, 200); -#endif + char buf[200] = {0}; if (has_ring == -1) has_ring = 1;