Skip to content

Commit

Permalink
Comment out unused variable in repeated_field_unittest.cc (#8578)
Browse files Browse the repository at this point in the history
The test assertion is commented out, but this is causing some warnings
about an unused variable. This commit comments out the variable to fix
that problem.
  • Loading branch information
acozzette committed May 7, 2021
1 parent 7e3bbed commit 3b08c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/repeated_field_unittest.cc
Expand Up @@ -889,8 +889,8 @@ TEST(RepeatedPtrField, UnambiguousConstructor) {

// Construction from string iterators for the unique string overload "g"
// works.
std::string b[2] = {"abc", "xyz"};
// Disabling this for now, this is actually ambiguous with libstdc++.
// std::string b[2] = {"abc", "xyz"};
// EXPECT_TRUE(X::g({b, b + 2}));

// Construction from string iterators for "f" is ambiguous, since both
Expand Down

0 comments on commit 3b08c72

Please sign in to comment.