Fixes GCC 4.6 warnings (patch by Jeffrey Yasskin).

This commit is contained in:
zhanyong.wan
2011-01-10 18:17:59 +00:00
parent afaefb0e30
commit 48b1315108
5 changed files with 49 additions and 25 deletions

View File

@@ -168,6 +168,7 @@ class To {
TEST(ImplicitCastTest, CanUseImplicitConstructor) {
bool converted = false;
To to = ::testing::internal::implicit_cast<To>(&converted);
(void)to;
EXPECT_TRUE(converted);
}