Fix maybe uninitialized error

pull/8617/head
Deanna Garcia 4 years ago
parent d43433d20f
commit 8d65655494
  1. 4
      src/google/protobuf/compiler/cpp/cpp_parse_function_generator.cc

@ -991,9 +991,7 @@ std::string FieldParseFunctionName(const FieldDescriptor* field,
type_format = TypeFormat::kString;
break;
case FieldDescriptor::TYPE_GROUP:
case FieldDescriptor::TYPE_MESSAGE:
case FieldDescriptor::TYPE_ENUM:
default:
GOOGLE_LOG(DFATAL) << "Type not handled: " << field->DebugString();
return "";
}

Loading…
Cancel
Save