From: Paul Floyd Date: Sat, 27 Apr 2024 11:30:35 +0000 (+0200) Subject: warnings: remove two unused variables X-Git-Tag: VALGRIND_3_24_0~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47fa0606627c268b038246a24466dad99743d9b;p=thirdparty%2Fvalgrind.git warnings: remove two unused variables --- diff --git a/coregrind/m_debuginfo/readdwarf3.c b/coregrind/m_debuginfo/readdwarf3.c index a3f100d34..a4b75a8c5 100644 --- a/coregrind/m_debuginfo/readdwarf3.c +++ b/coregrind/m_debuginfo/readdwarf3.c @@ -3118,7 +3118,6 @@ static void parse_var_DIE ( UWord typeR = D3_INVALID_CUOFF; Bool global = False; GExpr* gexpr = NULL; - Int n_attrs = 0; UWord abs_ori = (UWord)D3_INVALID_CUOFF; Int lineNo = 0; UInt fndn_ix = 0; @@ -3130,7 +3129,6 @@ static void parse_var_DIE ( nf_i++; if (attr == 0 && form == 0) break; get_Form_contents( &cts, cc, c_die, False/*td3*/, nf ); - n_attrs++; if (attr == DW_AT_name && cts.szB < 0) { name = ML_(addStrFromCursor)( cc->di, cts.u.cur ); } diff --git a/coregrind/m_debuginfo/readpdb.c b/coregrind/m_debuginfo/readpdb.c index 414c185cc..9ad5a1177 100644 --- a/coregrind/m_debuginfo/readpdb.c +++ b/coregrind/m_debuginfo/readpdb.c @@ -1536,7 +1536,6 @@ static ULong DEBUG_SnarfLinetab( Int k; const UInt * lt_ptr; Int nfile; - Int nseg; union any_size pnt; union any_size pnt2; const struct startend * start; @@ -1560,10 +1559,8 @@ static ULong DEBUG_SnarfLinetab( /* * Now count up the number of segments in the file. */ - nseg = 0; for (i = 0; i < nfile; i++) { pnt2.c = (const HChar *)linetab + filetab[i]; - nseg += *pnt2.s; } this_seg = 0;