diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-11-09 10:02:11 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-11 07:48:59 -0600 |
commit | 8dbd4b746da3c3dec6c4d8c8dc959ffeb15865de (patch) | |
tree | 2bb0c63fe8c955f1dae640d8c3a3329b104fbfa8 /board/freescale/common | |
parent | 67926c2a1d872deb12f21221e2a6d28ef575f956 (diff) | |
download | u-boot-imx-8dbd4b746da3c3dec6c4d8c8dc959ffeb15865de.zip u-boot-imx-8dbd4b746da3c3dec6c4d8c8dc959ffeb15865de.tar.gz u-boot-imx-8dbd4b746da3c3dec6c4d8c8dc959ffeb15865de.tar.bz2 |
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 <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/common')
-rw-r--r-- | board/freescale/common/pixis.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c index a35b5cf..8d07061 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) { |