From 94f61300c24539d36e64a129285882916304fa87 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 23 Oct 2014 21:02:43 +0200 Subject: [PATCH] bugfix: - remove and comment some gcc compiler warnings for not used vaiables. --- test/unit/utNoBoostTest.cpp | 1 + test/unit/utRemoveComponent.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/unit/utNoBoostTest.cpp b/test/unit/utNoBoostTest.cpp index 76b96129b..170d95a83 100644 --- a/test/unit/utNoBoostTest.cpp +++ b/test/unit/utNoBoostTest.cpp @@ -40,6 +40,7 @@ TEST(NoBoostTest, Tuple) { bool b = second.get<3>(); EXPECT_FALSE(b); + // check empty tuple, ignore compile warning boost::tuple<> third; // FIXME: Explicit conversion not really required yet diff --git a/test/unit/utRemoveComponent.cpp b/test/unit/utRemoveComponent.cpp index 8537badec..e00f752a5 100644 --- a/test/unit/utRemoveComponent.cpp +++ b/test/unit/utRemoveComponent.cpp @@ -68,6 +68,8 @@ void RemoveVCProcessTest::SetUp() // so we don't need a virtual destructor char check[sizeof(aiMaterial) == sizeof(aiMaterial) ? 10 : -1]; check[0] = 0; + // to remove compiler warning + EXPECT_TRUE( check ); } // ------------------------------------------------------------------------------------------------