diff options
Diffstat (limited to 'src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc')
-rw-r--r-- | src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc b/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc index 8272c67b..54f94284 100644 --- a/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc +++ b/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc @@ -76,6 +76,9 @@ const char* PrimitiveTypeName(const FieldDescriptor* descriptor) { case OBJECTIVECTYPE_MESSAGE: return NULL; } + + GOOGLE_LOG(FATAL) << "Can't get here."; + return NULL; } const char* PrimitiveArrayTypeName(const FieldDescriptor* descriptor) { @@ -104,6 +107,9 @@ const char* PrimitiveArrayTypeName(const FieldDescriptor* descriptor) { case OBJECTIVECTYPE_MESSAGE: return ""; // Want NSArray } + + GOOGLE_LOG(FATAL) << "Can't get here."; + return NULL; } void SetPrimitiveVariables(const FieldDescriptor* descriptor, @@ -155,7 +161,6 @@ void RepeatedPrimitiveFieldGenerator::FinishInitialization(void) { } } - } // namespace objectivec } // namespace compiler } // namespace protobuf |