From: Kumar Gala Date: Wed, 9 Nov 2011 16:02:11 +0000 (-0600) Subject: board/freescale/common/pixis.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~222^2^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8dbd4b746da3c3dec6c4d8c8dc959ffeb15865de;p=u-boot board/freescale/common/pixis.c: Fix GCC 4.6 build warning Fix: pixis.c: In function 'strfractoint': pixis.c:383:6: warning: variable 'intarr_len' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala --- diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c index a35b5cfe3e..8d07061c36 100644 --- a/board/freescale/common/pixis.c +++ b/board/freescale/common/pixis.c @@ -380,7 +380,7 @@ static unsigned long strfractoint(char *strptr) { int i, j; int mulconst; - int intarr_len, no_dec = 0; + int no_dec = 0; unsigned long intval = 0, decval = 0; char intarr[3], decarr[3]; @@ -399,8 +399,6 @@ static unsigned long strfractoint(char *strptr) i++; } - /* Assign length of integer part to intarr_len. */ - intarr_len = i; intarr[i] = '\0'; if (no_dec) {