projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67926c2
)
board/freescale/common/pixis.c: Fix GCC 4.6 build warning
author
Kumar Gala
<galak@kernel.crashing.org>
Wed, 9 Nov 2011 16:02:11 +0000
(10:02 -0600)
committer
Kumar Gala
<galak@kernel.crashing.org>
Fri, 11 Nov 2011 13:48:59 +0000
(07:48 -0600)
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>
board/freescale/common/pixis.c
patch
|
blob
|
history
diff --git
a/board/freescale/common/pixis.c
b/board/freescale/common/pixis.c
index a35b5cfe3e352af0e4d28bc35ff649a853589eec..8d07061c36f36a67481484719ab44436eb4a9b02 100644
(file)
--- 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) {