Commit 384b365b authored by Mukund Sivaraman's avatar Mukund Sivaraman

[3112] Fix an uninit variable use warning

This apparently happens when gtest-1.5 is in use. Patch was reviewed by
Thomas Markwalder.
parent cca46d0d
......@@ -714,9 +714,8 @@ public:
template<typename ContainerType, typename ValueType>
void checkValueEq(const boost::shared_ptr<ContainerType>& ref_values,
const boost::shared_ptr<ContainerType>& values) {
ValueType param;
ASSERT_NO_THROW(param = values->getParam("foo"));
EXPECT_EQ(ref_values->getParam("foo"), param);
ASSERT_NO_THROW(values->getParam("foo"));
EXPECT_EQ(ref_values->getParam("foo"), values->getParam("foo"));
}
/// @brief Check that the storages of the specific type hold different
......@@ -734,9 +733,8 @@ public:
template<typename ContainerType, typename ValueType>
void checkValueNeq(const boost::shared_ptr<ContainerType>& ref_values,
const boost::shared_ptr<ContainerType>& values) {
ValueType param;
ASSERT_NO_THROW(param = values->getParam("foo"));
EXPECT_NE(ref_values->getParam("foo"), param);
ASSERT_NO_THROW(values->getParam("foo"));
EXPECT_NE(ref_values->getParam("foo"), values->getParam("foo"));
}
/// @brief Check that option definition storage in the context holds
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment