diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-06-28 13:48:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 13:48:06 -0700 |
commit | f25e7edfa40c12300cf7dd3837b82841d095a79a (patch) | |
tree | 40ed1cec0eb61aa8f2c1b98a4b324453de9f6ed5 /src/google/protobuf/api.pb.cc | |
parent | 70544627cb89a61652d688c53984c68013ab985e (diff) |
Add -Og to no-warning-test (#4830)
* Add -Og to no-warning-test
* Initialize value
* Implement PrintFieldName in CompactRepeatedFieldPrinter to prevent Woverloaded-virtual
* Update generated code
Diffstat (limited to 'src/google/protobuf/api.pb.cc')
-rw-r--r-- | src/google/protobuf/api.pb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index 6ad9f48d..273307c7 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -414,7 +414,7 @@ bool Api::MergePartialFromCodedStream( case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { - int value; + int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); @@ -947,7 +947,7 @@ bool Method::MergePartialFromCodedStream( case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { - int value; + int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); |