Re: [U-Boot] [PATCH] drivers/net/ns8382x.c: fix GCC 4.6 build warnings

2011-11-03 Thread Wolfgang Denk
Dear Wolfgang Denk, In message <1319917054-14002-1-git-send-email...@denx.de> you wrote: > Fix: > ns8382x.c: In function 'ns8382x_check_duplex': > ns8382x.c:704:6: warning: variable 'hun' set but not used > [-Wunused-but-set-variable] > > To fix this, we get rid of the NS8382X_DEBUG code and use

[U-Boot] [PATCH] drivers/net/ns8382x.c: fix GCC 4.6 build warnings

2011-10-29 Thread Wolfgang Denk
Fix: ns8382x.c: In function 'ns8382x_check_duplex': ns8382x.c:704:6: warning: variable 'hun' set but not used [-Wunused-but-set-variable] To fix this, we get rid of the NS8382X_DEBUG code and use standard debug() instead. This will now trigger a so far undetected warning: ns8382x.c:780:2: warning