DescriptionThe unit test added in r1067 fails to compile for me with Ubuntu's GCC 4.6.3. I get template errors in gtest: In file included from ../google-breakpad/src/testing/gtest/include/gtest/gtest.h:55:0, from ../google-breakpad/src/breakpad_googletest_includes.h:33, from ../google-breakpad/src/client/linux/handler/exception_handler_unittest.cc:41: ../google-breakpad/src/testing/gtest/include/gtest/internal/gtest-internal.h: In function ‘testing::internal::String testing::internal::FormatForFailureMessage(T*) [with T = void(int)]’: ../google-breakpad/src/testing/gtest/include/gtest/gtest.h:1246:39: instantiated from ‘testing::internal::String testing::internal::FormatForComparisonFailureMessage(const T1&, const T2&) [with T1 = void (*)(int), T2 = void (*)(int)]’ ../google-breakpad/src/testing/gtest/include/gtest/gtest.h:1377:1: instantiated from ‘testing::AssertionResult testing::internal::CmpHelperNE(const char*, const char*, const T1&, const T2&) [with T1 = void (*)(int), T2 = void (*)(int)]’ ../google-breakpad/src/client/linux/handler/exception_handler_unittest.cc:341:5: instantiated from here ../google-breakpad/src/testing/gtest/include/gtest/internal/gtest-internal.h:238:62: error: invalid static_cast from type ‘void (*)(int)’ to type ‘const void*’ Adding copious casts fixes the issue for me. Patch Set 1 #
Total comments: 1
MessagesTotal messages: 6
|