From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 23 Nov 2011 08:34:40 +0100 Subject: [U-Boot] [PATCH] drivers/net/dnet.c: Fix GCC 4.6 warnings In-Reply-To: <1321733190-5947-1-git-send-email-agust@denx.de> References: <1321733190-5947-1-git-send-email-agust@denx.de> Message-ID: <4ECCA210.20203@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Anatolij, Anatolij Gustschin wrote: > Fix: > dnet.c: In function 'dnet_send': > dnet.c:136:9: warning: variable 'len' set but not used > [-Wunused-but-set-variable] > dnet.c: In function 'dnet_set_hwaddr': > dnet.c:209:2: warning: dereferencing type-punned pointer will > break strict-aliasing rules [-Wstrict-aliasing] > dnet.c:209:2: warning: dereferencing type-punned pointer will > break strict-aliasing rules [-Wstrict-aliasing] > dnet.c:209:2: warning: dereferencing type-punned pointer will > break strict-aliasing rules [-Wstrict-aliasing] > dnet.c:209:2: warning: dereferencing type-punned pointer will > break strict-aliasing rules [-Wstrict-aliasing] > > Signed-off-by: Anatolij Gustschin > --- > drivers/net/dnet.c | 12 +++++------- > 1 files changed, 5 insertions(+), 7 deletions(-) Applied to u-boot-stagin hs at denx.de Thanks! bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany