Clang generates a warning if there is a variable that is set but not used
otherwise ("-Wunused-but-set-variable"). On the default configuration, it
causes a build failure (unless "--disable-werror" is specified).
The only extra_lines use in arrange_linetable function is removed on the
commit
558802e4d1c5dcbd0df7d2c6ef62a6deac247a2f
("gdb: change subfile::line_vector to an std::vector"). So, this variable
should be removed to prevent a build failure.
static void
arrange_linetable (std::vector<linetable_entry> &old_linetable)
{
- int extra_lines = 0;
-
std::vector<linetable_entry> fentries;
for (int ii = 0; ii < old_linetable.size (); ++ii)
e.line = ii;
e.is_stmt = 1;
e.pc = old_linetable[ii].pc;
-
- /* If the function was compiled with XLC, we may have to add an
- extra line entry later. Reserve space for that. */
- if (ii + 1 < old_linetable.size ()
- && old_linetable[ii].pc != old_linetable[ii + 1].pc)
- extra_lines++;
}
}