Просмотр исходного кода

Fix a compiler warning.

Change-Id: I4c4e2a4a248e4336fef735f75ff5648d8d33627e
Feng Xiao 9 лет назад
Родитель
Сommit
7a9d5825e2
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/google/protobuf/compiler/js/js_generator.cc

+ 2 - 0
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,