[syslinux:elflink] vdprintf: Remove unused variable
syslinux-bot for Paulo Alcantara
pcacjr at zytor.com
Thu Jul 19 08:48:04 PDT 2012
Commit-ID: 3c95b5510024938389547eef80b266f478eb4cde
Gitweb: http://www.syslinux.org/commit/3c95b5510024938389547eef80b266f478eb4cde
Author: Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Thu, 5 Jul 2012 03:39:58 -0300
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Thu, 5 Jul 2012 03:41:44 -0300
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 at zytor.com>
---
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 77e8da4..db60295 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;
More information about the Syslinux-commits
mailing list