From: Wolfgang Denk Date: Thu, 03 Nov 2011 20:40:24 +0100 Subject: [U-Boot] [PATCH] board/prodrive/p3mx/mv_eth.c: fix GCC 4.6 build warnings In-Reply-To: <1319917101-14282-1-git-send-email-wd@denx.de> References: <1319917101-14282-1-git-send-email-wd@denx.de> Message-ID: <20111103194024.1CF21180985E@gemini.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 Dear Wolfgang Denk, In message <1319917101-14282-1-git-send-email-wd@denx.de> you wrote: > Fix: > mv_eth.c: In function 'mv64460_eth_real_open': > mv_eth.c:471:6: warning: variable 'port_status' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_stop': > mv_eth.c:722:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_xmit': > mv_eth.c:796:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_receive': > mv_eth.c:877:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_get_stats': > mv_eth.c:979:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_update_stat': > mv_eth.c:1006:24: warning: variable 'dummy' set but not used [-Wunused-but-set-variable] > mv_eth.c:1005:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'mv64460_eth_print_stat': > mv_eth.c:1087:15: warning: variable 'port_num' set but not used [-Wunused-but-set-variable] > mv_eth.c: In function 'eth_clear_mib_counters': > mv_eth.c:2141:15: warning: variable 'dummy' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Wolfgang Denk > --- > board/prodrive/p3mx/mv_eth.c | 33 ++++++--------------------------- > 1 files changed, 6 insertions(+), 27 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A well-written program is its own heaven; a poorly-written program is its own hell. -- Geoffrey James, "The Tao of Programming"