From b43dacb23ae5458e9f3d596018be077a568c4885 Mon Sep 17 00:00:00 2001 From: "mseaborn@chromium.org" Date: Mon, 6 May 2013 23:27:28 +0000 Subject: 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 --- src/processor/exploitability_win.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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."; -- cgit v1.2.1