Commit 2f656087 authored by Brian Silverman's avatar Brian Silverman

Fix broken test of const repeated field iterators

The old version had a NOP for loop, which doesn't make sense. I'm pretty
sure this was the original intention. Newer GCC's
-Wunused-but-set-variable flags the old version.
parent 9bbc4b1f
......@@ -1055,7 +1055,7 @@ TEST(ExtensionSetTest, RepeatedFields) {
unittest::repeated_nested_enum_extension).begin(),
enum_const_end = message.GetRepeatedExtension(
unittest::repeated_nested_enum_extension).end();
enum_iter != enum_end; ++enum_iter) {
enum_const_iter != enum_const_end; ++enum_const_iter) {
ASSERT_EQ(*enum_const_iter, unittest::TestAllTypes::NestedEnum_MAX);
}
......
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