aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYunxiao Ma <yxma@google.com>2016-04-05 19:37:13 -0400
committerMark Mentovai <mark@chromium.org>2016-04-05 19:37:13 -0400
commit32901f6d4ceb9c2ba0e216e4ffdfd6f9dceabb9e (patch)
tree8568cfdf30cf17b43dea2e395444062d493fde83 /src
parentRename stdio.h wrapper file to stdio_wrapper.h. (diff)
downloadbreakpad-32901f6d4ceb9c2ba0e216e4ffdfd6f9dceabb9e.tar.xz
Remove unreferenced local variable which breaks build.
Depending on compiler's setting, the unreferenced local variable may cause build break. modified: src/processor/minidump.cc R=mark@chromium.org Review URL: https://codereview.chromium.org/1866533002 . Patch from Yunxiao Ma <yxma@google.com>.
Diffstat (limited to 'src')
-rw-r--r--src/processor/minidump.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc
index 8b66f7c4..3e40f4fd 100644
--- a/src/processor/minidump.cc
+++ b/src/processor/minidump.cc
@@ -1930,9 +1930,8 @@ string MinidumpModule::debug_file() const {
file = reinterpret_cast<const char*>(cv_record_20->pdb_file_name);
} else if (cv_record_signature_ == MD_CVINFOELF_SIGNATURE) {
// It's actually an MDCVInfoELF structure.
- const MDCVInfoELF* cv_record_elf =
- reinterpret_cast<const MDCVInfoELF*>(&(*cv_record_)[0]);
- assert(cv_record_elf->cv_signature == MD_CVINFOELF_SIGNATURE);
+ assert(reinterpret_cast<const MDCVInfoELF*>(&(*cv_record_)[0])->
+ cv_signature == MD_CVINFOELF_SIGNATURE);
// For MDCVInfoELF, the debug file is the code file.
file = *name_;