aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc
diff options
context:
space:
mode:
authorGravatar Paul Yang <paulyang1211@gmail.com>2015-05-21 11:20:15 -0700
committerGravatar Paul Yang <paulyang1211@gmail.com>2015-05-21 11:20:15 -0700
commitc3480926f98eb7c45224daae5cf0373e120b3b8d (patch)
tree3f57dbd6399e2496a6c797fb59a71ac00e949552 /src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc
parent3668a224f3ea870a1b8026ba0709f964ed75d53b (diff)
parentce55ff9441753164a34f31a48572ea2f1fb38aba (diff)
Merge pull request #402 from thomasvl/objc_on_win
Getting the ObjC generator building on Windows.
Diffstat (limited to 'src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc')
-rw-r--r--src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc7
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