Skip to content

Commit

Permalink
com32/lib/vsscanf.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 2f9f44c commit 585921d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions com32/lib/vsscanf.c
Expand Up @@ -69,7 +69,6 @@ int vsscanf(const char *buffer, const char *format, va_list ap)
} state = st_normal;
char *sarg = NULL; /* %s %c or %[ string argument */
enum bail bail = bail_none;
int sign;
int converted = 0; /* Successful conversions */
unsigned long matchmap[((1 << CHAR_BIT) + (LONG_BIT - 1)) / LONG_BIT];
int matchinv = 0; /* Is match map inverted? */
Expand Down Expand Up @@ -176,33 +175,27 @@ int vsscanf(const char *buffer, const char *format, va_list ap)
#endif
rank = rank_ptr;
base = 0;
sign = 0;
goto scan_int;

case 'i': /* Base-independent integer */
base = 0;
sign = 1;
goto scan_int;

case 'd': /* Decimal integer */
base = 10;
sign = 1;
goto scan_int;

case 'o': /* Octal integer */
base = 8;
sign = 0;
goto scan_int;

case 'u': /* Unsigned decimal integer */
base = 10;
sign = 0;
goto scan_int;

case 'x': /* Hexadecimal integer */
case 'X':
base = 16;
sign = 0;
goto scan_int;

case 'n': /* Number of characters consumed */
Expand Down

0 comments on commit 585921d

Please sign in to comment.