mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-30 21:04:17 +01:00
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:
parent
f794d083dc
commit
3b3469e9ed
@ -568,11 +568,11 @@ const uint8_t* CompilationUnit::ProcessStrOffsetBaseAttribute(
|
|||||||
return start + datalen + len;
|
return start + datalen + len;
|
||||||
}
|
}
|
||||||
case DW_FORM_strp: {
|
case DW_FORM_strp: {
|
||||||
const uint64_t offset = reader_->ReadOffset(start);
|
reader_->ReadOffset(start);
|
||||||
return start + reader_->OffsetSize();
|
return start + reader_->OffsetSize();
|
||||||
}
|
}
|
||||||
case DW_FORM_line_strp: {
|
case DW_FORM_line_strp: {
|
||||||
const uint64_t offset = reader_->ReadOffset(start);
|
reader_->ReadOffset(start);
|
||||||
return start + reader_->OffsetSize();
|
return start + reader_->OffsetSize();
|
||||||
}
|
}
|
||||||
case DW_FORM_strp_sup:
|
case DW_FORM_strp_sup:
|
||||||
@ -586,7 +586,7 @@ const uint8_t* CompilationUnit::ProcessStrOffsetBaseAttribute(
|
|||||||
return start + len;
|
return start + len;
|
||||||
case DW_FORM_strx:
|
case DW_FORM_strx:
|
||||||
case DW_FORM_GNU_str_index: {
|
case DW_FORM_GNU_str_index: {
|
||||||
uint64_t str_index = reader_->ReadUnsignedLEB128(start, &len);
|
reader_->ReadUnsignedLEB128(start, &len);
|
||||||
return start + len;
|
return start + len;
|
||||||
}
|
}
|
||||||
case DW_FORM_strx1: {
|
case DW_FORM_strx1: {
|
||||||
|
Loading…
Reference in New Issue
Block a user