diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-05 03:39:58 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-05 03:41:44 -0300 |
commit | 3c95b5510024938389547eef80b266f478eb4cde (patch) | |
tree | 5b9eba6816806031adfc77cfef3b04faa13c35ab | |
parent | 0bc1bf0ffd8d8cff581631995b02dabd1d463f4b (diff) | |
download | syslinux-3c95b5510024938389547eef80b266f478eb4cde.tar.gz syslinux-3c95b5510024938389547eef80b266f478eb4cde.tar.xz syslinux-3c95b5510024938389547eef80b266f478eb4cde.zip |
vdprintf: Remove unused variable
This patch removes an unused variable and fixes the following warning:
vdprintf.c: In function ‘vdprintf’:
vdprintf.c:48:13: warning: variable ‘_rv’ set but not used
[-Wunused-but-set-variable]
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | com32/lib/vdprintf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/com32/lib/vdprintf.c b/com32/lib/vdprintf.c index 77e8da42..db602959 100644 --- a/com32/lib/vdprintf.c +++ b/com32/lib/vdprintf.c @@ -45,14 +45,13 @@ static void debug_putc(char c) void vdprintf(const char *format, va_list ap) { - int rv, _rv; + int rv; char buffer[BUFFER_SIZE]; char *p; static bool debug_init = false; static bool debug_ok = false; - _rv = rv = vsnprintf(buffer, BUFFER_SIZE, format, ap); - + rv = vsnprintf(buffer, BUFFER_SIZE, format, ap); if (rv < 0) return; |