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:
		@@ -105,18 +105,15 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  uint64_t stack_ptr = 0;
 | 
					  uint64_t stack_ptr = 0;
 | 
				
			||||||
  uint64_t instruction_ptr = 0;
 | 
					  uint64_t instruction_ptr = 0;
 | 
				
			||||||
  uint64_t this_ptr = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  switch (context->GetContextCPU()) {
 | 
					  switch (context->GetContextCPU()) {
 | 
				
			||||||
    case MD_CONTEXT_X86:
 | 
					    case MD_CONTEXT_X86:
 | 
				
			||||||
      stack_ptr = context->GetContextX86()->esp;
 | 
					      stack_ptr = context->GetContextX86()->esp;
 | 
				
			||||||
      instruction_ptr = context->GetContextX86()->eip;
 | 
					      instruction_ptr = context->GetContextX86()->eip;
 | 
				
			||||||
      this_ptr = context->GetContextX86()->ecx;
 | 
					 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
    case MD_CONTEXT_AMD64:
 | 
					    case MD_CONTEXT_AMD64:
 | 
				
			||||||
      stack_ptr = context->GetContextAMD64()->rsp;
 | 
					      stack_ptr = context->GetContextAMD64()->rsp;
 | 
				
			||||||
      instruction_ptr = context->GetContextAMD64()->rip;
 | 
					      instruction_ptr = context->GetContextAMD64()->rip;
 | 
				
			||||||
      this_ptr = context->GetContextAMD64()->rcx;
 | 
					 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
      BPLOG(INFO) << "Unsupported architecture.";
 | 
					      BPLOG(INFO) << "Unsupported architecture.";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user