diff --git a/src/google/protobuf/compiler/js/js_generator.cc b/src/google/protobuf/compiler/js/js_generator.cc index 1e30846463..3ffa95397f 100755 --- a/src/google/protobuf/compiler/js/js_generator.cc +++ b/src/google/protobuf/compiler/js/js_generator.cc @@ -690,6 +690,8 @@ string JSFieldDefault(const FieldDescriptor* field) { case FieldDescriptor::CPPTYPE_MESSAGE: return "null"; } + GOOGLE_LOG(FATAL) << "Shouldn't reach here."; + return ""; } string ProtoTypeName(const GeneratorOptions& options,