[syslinux:master] com32/lib/vsscanf.c: remove variables set but not used

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:18:47 PDT 2011


Commit-ID:  585921d4c30b56b290e8f2cc635b2eb527a679af
Gitweb:     http://syslinux.zytor.com/commit/585921d4c30b56b290e8f2cc635b2eb527a679af
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700

com32/lib/vsscanf.c: remove variables set but not used

gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/lib/vsscanf.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/com32/lib/vsscanf.c b/com32/lib/vsscanf.c
index 9a462c6..751f22a 100644
--- a/com32/lib/vsscanf.c
+++ b/com32/lib/vsscanf.c
@@ -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? */
@@ -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 */



More information about the Syslinux-commits mailing list