diff options
author | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-10-15 11:59:45 +0000 |
---|---|---|
committer | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-10-15 11:59:45 +0000 |
commit | f9a63cb16435f373387ce7183862424f063277cc (patch) | |
tree | 08c86336b7199f20ef9432f6de49f85a6514ab99 | |
parent | Check-in stack_frame_symbolizer.[h|cc] that were missing in r1068. (diff) | |
download | breakpad-f9a63cb16435f373387ce7183862424f063277cc.tar.xz |
Fix some compiler errors in exception_handler_unittest by casting like crazy
R=digit at https://breakpad.appspot.com/483002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1072 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r-- | src/client/linux/handler/exception_handler_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/linux/handler/exception_handler_unittest.cc b/src/client/linux/handler/exception_handler_unittest.cc index bb463510..85da78af 100644 --- a/src/client/linux/handler/exception_handler_unittest.cc +++ b/src/client/linux/handler/exception_handler_unittest.cc @@ -338,8 +338,10 @@ TEST(ExceptionHandlerTest, RedeliveryOnBadSignalHandlerFlag) { // Then re-install the current one with 'signal', this loses the // SA_SIGINFO flag associated with the Breakpad handler. sighandler_t old_handler = signal(SIGSEGV, SIG_DFL); - ASSERT_NE(old_handler, SIG_ERR); - ASSERT_NE(signal(SIGSEGV, old_handler), SIG_ERR); + ASSERT_NE(reinterpret_cast<void*>(old_handler), + reinterpret_cast<void*>(SIG_ERR)); + ASSERT_NE(reinterpret_cast<void*>(signal(SIGSEGV, old_handler)), + reinterpret_cast<void*>(SIG_ERR)); // Crash with the exception handler in scope. *reinterpret_cast<volatile int*>(NULL) = 0; |