diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-02-28 23:52:42 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-02-28 23:52:42 +0000 |
commit | fc01f532a622a7d460a4eff816c56c0e501f20f7 (patch) | |
tree | 523c049421d656a498b3260de830c70b5e2070fe /include/gtest/internal/gtest-port.h | |
parent | 6a036a5c8c7613e888fad39d92fc3fd84a96fbc7 (diff) | |
download | googletest-fc01f532a622a7d460a4eff816c56c0e501f20f7.tar.gz googletest-fc01f532a622a7d460a4eff816c56c0e501f20f7.tar.bz2 googletest-fc01f532a622a7d460a4eff816c56c0e501f20f7.zip |
Fixes unused function warning on Mac, and fixes compatibility with newer GCC.
Diffstat (limited to 'include/gtest/internal/gtest-port.h')
-rw-r--r-- | include/gtest/internal/gtest-port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index f78994a0..dc4fe0cb 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -813,8 +813,8 @@ struct CompileAssert { }; #define GTEST_COMPILE_ASSERT_(expr, msg) \ - typedef ::testing::internal::CompileAssert<(bool(expr))> \ - msg[bool(expr) ? 1 : -1] + typedef ::testing::internal::CompileAssert<(static_cast<bool>(expr))> \ + msg[static_cast<bool>(expr) ? 1 : -1] GTEST_ATTRIBUTE_UNUSED_ // Implementation details of GTEST_COMPILE_ASSERT_: // |