From f9a63cb16435f373387ce7183862424f063277cc Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Mon, 15 Oct 2012 11:59:45 +0000 Subject: 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 --- src/client/linux/handler/exception_handler_unittest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/client/linux') 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(old_handler), + reinterpret_cast(SIG_ERR)); + ASSERT_NE(reinterpret_cast(signal(SIGSEGV, old_handler)), + reinterpret_cast(SIG_ERR)); // Crash with the exception handler in scope. *reinterpret_cast(NULL) = 0; -- cgit v1.2.1