Fix two warnings of unusued variable or variable set but not used
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13939 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/hg_addrdescr.c b/helgrind/hg_addrdescr.c
index 16eb076..5fe507f 100644
--- a/helgrind/hg_addrdescr.c
+++ b/helgrind/hg_addrdescr.c
@@ -145,10 +145,9 @@
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 a0684e1..276f730 100644
--- a/helgrind/hg_main.c
+++ b/helgrind/hg_main.c
@@ -4753,7 +4753,6 @@
/* 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 @@
print_monitor_help();
return True;
case 1: /* info */
- ret = 1;
wcmd = VG_(strtok_r) (NULL, " ", &ssaveptr);
switch (kwdid = VG_(keyword_id)
("locks",