]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
warnings: remove two unused variables
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 27 Apr 2024 11:30:35 +0000 (13:30 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 27 Apr 2024 11:30:35 +0000 (13:30 +0200)
coregrind/m_debuginfo/readdwarf3.c
coregrind/m_debuginfo/readpdb.c

index a3f100d3487027837ab800ab470a367fefb9618a..a4b75a8c532b206d6705941486f4a432a8ec6a3b 100644 (file)
@@ -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 );
          }
index 414c185ccdb6e372b1801783eebc42f88b29e05e..9ad5a1177569e3eee367496c66c281d1d2a5db74 100644 (file)
@@ -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;