GCC notices that this_seg is set, but never really used in this
function
m_debuginfo/readpdb.c: In function 'DEBUG_SnarfLinetab':
m_debuginfo/readpdb.c:1542:23: warning: variable 'this_seg' set but not used [-Wunused-but-set-variable=]
1542 | Int this_seg;
| ^~~~~~~~
Fix this by just removing this_seg.
union any_size pnt;
union any_size pnt2;
const struct startend * start;
- Int this_seg;
Bool debug = di->trace_symtab;
ULong n_lines_read = 0;
pnt2.c = (const HChar *)linetab + filetab[i];
}
- this_seg = 0;
for (i = 0; i < nfile; i++) {
const HChar *fnmstr;
const HChar *dirstr;
fnmstr = ML_(addStr)(di, fnmstr, k);
fnmdirstr_ix = ML_(addFnDn) (di, fnmstr, dirstr);
- for (k = 0; k < file_segcount; k++, this_seg++) {
+ for (k = 0; k < file_segcount; k++) {
Int linecount;
Int segno;