summaryrefslogtreecommitdiff
path: root/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cpp/src/thrift/generate/t_haxe_generator.cc')
-rw-r--r--compiler/cpp/src/thrift/generate/t_haxe_generator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
index 757f207f0..fdd21f2a3 100644
--- a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
@@ -2698,6 +2698,8 @@ string t_haxe_generator::declare_field(t_field* tfield, bool init) {
case t_base_type::TYPE_DOUBLE:
result += " = (double)0";
break;
+ default:
+ throw "unhandled type";
}
} else if (ttype->is_enum()) {
@@ -2805,6 +2807,8 @@ string t_haxe_generator::type_to_enum(t_type* type) {
return "TType.I64";
case t_base_type::TYPE_DOUBLE:
return "TType.DOUBLE";
+ default:
+ break;
}
} else if (type->is_enum()) {
return "TType.I32";