diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-12-05 22:29:30 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-12-05 22:29:30 +0000 |
commit | 2bee6e66e841dc4af52b5bf5681d8ad02c3f0ae3 (patch) | |
tree | a9d8d90814b05ba50e1fda6949ef57c8a6f8405f /src/google/protobuf/repeated_field_unittest.cc | |
parent | ed95d54e92b4ae97378a8b3966a45b359fd6d4f0 (diff) |
Fix build warnings for gcc 4.6
Diffstat (limited to 'src/google/protobuf/repeated_field_unittest.cc')
-rw-r--r-- | src/google/protobuf/repeated_field_unittest.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/google/protobuf/repeated_field_unittest.cc b/src/google/protobuf/repeated_field_unittest.cc index db4ece46..257701eb 100644 --- a/src/google/protobuf/repeated_field_unittest.cc +++ b/src/google/protobuf/repeated_field_unittest.cc @@ -1007,11 +1007,13 @@ class RepeatedPtrFieldPtrsIteratorTest : public testing::Test { TEST_F(RepeatedPtrFieldPtrsIteratorTest, ConvertiblePtr) { RepeatedPtrField<string>::pointer_iterator iter = proto_array_.pointer_begin(); + (void) iter; } TEST_F(RepeatedPtrFieldPtrsIteratorTest, ConvertibleConstPtr) { RepeatedPtrField<string>::const_pointer_iterator iter = const_proto_array_->pointer_begin(); + (void) iter; } TEST_F(RepeatedPtrFieldPtrsIteratorTest, MutablePtrIteration) { @@ -1136,8 +1138,6 @@ TEST_F(RepeatedPtrFieldPtrsIteratorTest, PtrSTLAlgorithms_lower_bound) { proto_array_.Add()->assign("y"); { - RepeatedPtrField<string>::pointer_iterator iter = - proto_array_.pointer_begin(); string v = "f"; RepeatedPtrField<string>::pointer_iterator it = lower_bound(proto_array_.pointer_begin(), proto_array_.pointer_end(), @@ -1149,8 +1149,6 @@ TEST_F(RepeatedPtrFieldPtrsIteratorTest, PtrSTLAlgorithms_lower_bound) { EXPECT_TRUE(it == proto_array_.pointer_begin() + 3); } { - RepeatedPtrField<string>::const_pointer_iterator iter = - const_proto_array_->pointer_begin(); string v = "f"; RepeatedPtrField<string>::const_pointer_iterator it = lower_bound(const_proto_array_->pointer_begin(), |