]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix two warnings of unusued variable or variable set but not used
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 6 May 2014 21:54:09 +0000 (21:54 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 6 May 2014 21:54:09 +0000 (21:54 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13939

helgrind/hg_addrdescr.c
helgrind/hg_main.c

index 16eb0769ed27c38133be68a04d4759cd577634bd..5fe507f5097d2dd2df6a3f13b709127f5d4fb6f2 100644 (file)
@@ -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);
 }
 
index a0684e166e3f45e28c23fae5d8e32239d6595e30..276f730e5a5ebd64528f72dd02cd282747e213cf 100644 (file)
@@ -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",