aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormseaborn@chromium.org <mseaborn@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-05-06 23:27:28 +0000
committermseaborn@chromium.org <mseaborn@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-05-06 23:27:28 +0000
commitb43dacb23ae5458e9f3d596018be077a568c4885 (patch)
tree815784c90866b21af9a26496be6999a7fd02b185
parentFix GetLoadingAddress() to work for Native Client executables (diff)
downloadbreakpad-b43dacb23ae5458e9f3d596018be077a568c4885.tar.xz
Fix an "unused variable" compiler warning in exploitability_win.cc
BUG=none TEST=compile with "-Wall -Werror" Review URL: https://breakpad.appspot.com/588003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1171 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r--src/processor/exploitability_win.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/processor/exploitability_win.cc b/src/processor/exploitability_win.cc
index e20fbdda..8a444eb2 100644
--- a/src/processor/exploitability_win.cc
+++ b/src/processor/exploitability_win.cc
@@ -105,18 +105,15 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
uint64_t stack_ptr = 0;
uint64_t instruction_ptr = 0;
- uint64_t this_ptr = 0;
switch (context->GetContextCPU()) {
case MD_CONTEXT_X86:
stack_ptr = context->GetContextX86()->esp;
instruction_ptr = context->GetContextX86()->eip;
- this_ptr = context->GetContextX86()->ecx;
break;
case MD_CONTEXT_AMD64:
stack_ptr = context->GetContextAMD64()->rsp;
instruction_ptr = context->GetContextAMD64()->rip;
- this_ptr = context->GetContextAMD64()->rcx;
break;
default:
BPLOG(INFO) << "Unsupported architecture.";