Przeglądaj źródła

Fix a compiler warning.

Change-Id: I4c4e2a4a248e4336fef735f75ff5648d8d33627e
Feng Xiao 9 lat temu
rodzic
commit
7a9d5825e2

+ 2 - 0
src/google/protobuf/compiler/js/js_generator.cc

@@ -690,6 +690,8 @@ string JSFieldDefault(const FieldDescriptor* field) {
     case FieldDescriptor::CPPTYPE_MESSAGE:
     case FieldDescriptor::CPPTYPE_MESSAGE:
       return "null";
       return "null";
   }
   }
+  GOOGLE_LOG(FATAL) << "Shouldn't reach here.";
+  return "";
 }
 }
 
 
 string ProtoTypeName(const GeneratorOptions& options,
 string ProtoTypeName(const GeneratorOptions& options,