From 0b761ece4d8c9e77f99a64e36efbd9181dc33287 Mon Sep 17 00:00:00 2001 From: RevenantX Date: Wed, 29 Jul 2015 00:45:26 +0300 Subject: [PATCH] default in switch. --- src/idl_gen_general.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/idl_gen_general.cpp b/src/idl_gen_general.cpp index 2e65680..def1ad3 100644 --- a/src/idl_gen_general.cpp +++ b/src/idl_gen_general.cpp @@ -370,6 +370,8 @@ static std::string GenDefaultValue(const LanguageParameters &lang, const Value & return "default(Offset<" + value.type.struct_def->name + ">)"; case BASE_TYPE_VECTOR: return "default(VectorOffset)"; + default: + break; } } -- 2.7.4