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
This commit is contained in:
parent
3444ed7cf1
commit
b43dacb23a
1 changed files with 0 additions and 3 deletions
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue