From: Philippe Waroquiers Date: Tue, 6 May 2014 21:54:09 +0000 (+0000) Subject: Fix two warnings of unusued variable or variable set but not used X-Git-Tag: svn/VALGRIND_3_10_0~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5321f88af131a4699a477f5cd9e1fe128abfd4eb;p=thirdparty%2Fvalgrind.git Fix two warnings of unusued variable or variable set but not used git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13939 --- diff --git a/helgrind/hg_addrdescr.c b/helgrind/hg_addrdescr.c index 16eb0769ed..5fe507f509 100644 --- a/helgrind/hg_addrdescr.c +++ b/helgrind/hg_addrdescr.c @@ -145,10 +145,9 @@ void HG_(pp_addrdescr) (Bool xml, const HChar* what, Addr addr, static void void_printf(const HChar *format, ...) { - UInt ret; va_list vargs; va_start(vargs, format); - ret = VG_(vprintf)(format, vargs); + VG_(vprintf)(format, vargs); va_end(vargs); } diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c index a0684e166e..276f730e5a 100644 --- a/helgrind/hg_main.c +++ b/helgrind/hg_main.c @@ -4753,7 +4753,6 @@ static void print_monitor_help ( void ) /* return True if request recognised, False otherwise */ static Bool handle_gdb_monitor_command (ThreadId tid, HChar *req) { - UWord ret = 0; HChar* wcmd; HChar s[VG_(strlen(req))]; /* copy for strtok_r */ HChar *ssaveptr; @@ -4776,7 +4775,6 @@ static Bool handle_gdb_monitor_command (ThreadId tid, HChar *req) print_monitor_help(); return True; case 1: /* info */ - ret = 1; wcmd = VG_(strtok_r) (NULL, " ", &ssaveptr); switch (kwdid = VG_(keyword_id) ("locks",