mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
67926c2a1d
commit
8dbd4b746d
1 changed files with 1 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue