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;