breakpad: Eliminate 'unused variable' warnings.

When built with -Werror, dwar2reader.cc fails to build with three
-Wunused-variable warnings.  This CL fixes that.

Change-Id: I10487644377d623d850acc258a94bbacb368ffae
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2638927
Reviewed-by: Sterling Augustine <saugustine@google.com>
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Caroline Tice 2021-01-20 12:07:19 -08:00 committed by Sterling Augustine
parent f794d083dc
commit 3b3469e9ed

View File

@ -568,11 +568,11 @@ const uint8_t* CompilationUnit::ProcessStrOffsetBaseAttribute(
return start + datalen + len;
}
case DW_FORM_strp: {
const uint64_t offset = reader_->ReadOffset(start);
reader_->ReadOffset(start);
return start + reader_->OffsetSize();
}
case DW_FORM_line_strp: {
const uint64_t offset = reader_->ReadOffset(start);
reader_->ReadOffset(start);
return start + reader_->OffsetSize();
}
case DW_FORM_strp_sup:
@ -586,7 +586,7 @@ const uint8_t* CompilationUnit::ProcessStrOffsetBaseAttribute(
return start + len;
case DW_FORM_strx:
case DW_FORM_GNU_str_index: {
uint64_t str_index = reader_->ReadUnsignedLEB128(start, &len);
reader_->ReadUnsignedLEB128(start, &len);
return start + len;
}
case DW_FORM_strx1: {