diff options
author | Dongkyun Son <dongkyun.s@samsung.com> | 2023-11-13 22:01:56 +0900 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2023-12-01 19:08:14 +0900 |
commit | c34e1861860308be9ac573061fa261fb077a89f0 (patch) | |
tree | e8ee9bd1a7517a0b5226d986ff9003641326412d | |
parent | 585fbdfffb28efc966193ee82482a15c3b293345 (diff) | |
download | flatbuffers-sandbox/dkson95/tizen_dev.tar.gz flatbuffers-sandbox/dkson95/tizen_dev.tar.bz2 flatbuffers-sandbox/dkson95/tizen_dev.zip |
flatbuffers: add break statement to switch-casesandbox/dkson95/tizen_dev
Fix "error: this statement may fall through [-Werror=implicit-fallthrough=]"
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
-rw-r--r-- | src/idl_gen_cpp.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp index b7f9a6e5..bd1cf7f2 100644 --- a/src/idl_gen_cpp.cpp +++ b/src/idl_gen_cpp.cpp @@ -843,6 +843,7 @@ class CppGenerator : public BaseGenerator { const auto nn = WrapNativeNameInNameSpace(*type.struct_def, opts_); return forcopy ? nn : GenTypeNativePtr(nn, &field, false); } + break; } case BASE_TYPE_UNION: { auto type_name = WrapInNameSpace(*type.enum_def); @@ -2917,6 +2918,7 @@ class CppGenerator : public BaseGenerator { true); return ptype + "(" + val + "->UnPack(_resolver))"; } + break; } case BASE_TYPE_UNION: { return GenUnionUnpackVal( |