From: Wolfgang Denk Date: Thu, 03 Nov 2011 20:39:04 +0100 Subject: [U-Boot] [PATCH] drivers/net/ns8382x.c: fix GCC 4.6 build warnings In-Reply-To: <1319917054-14002-1-git-send-email-wd@denx.de> References: <1319917054-14002-1-git-send-email-wd@denx.de> Message-ID: <20111103193904.707D3180985E@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 <1319917054-14002-1-git-send-email-wd@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 standard > debug() instead. > > This will now trigger a so far undetected warning: > ns8382x.c:780:2: warning: format '%X' expects argument of type > 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat] > > Fix that, too. > > Signed-off-by: Wolfgang Denk > --- > drivers/net/ns8382x.c | 85 +++++++++++++++++++++--------------------------- > 1 files changed, 37 insertions(+), 48 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 I have often regretted my speech, never my silence.