summaryrefslogtreecommitdiff
path: root/src/reflection.cpp
diff options
context:
space:
mode:
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>2019-01-29 01:16:12 +0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-01-28 10:16:12 -0800
commit7d3930a2fd71774fdec063160ebd168bbff6db8b (patch)
treec08a9ee999dd7b96fd1742b7cb871fd338be9cb4 /src/reflection.cpp
parent347dba8501a6c4deacc63afd0554fbfe5048104f (diff)
downloadflatbuffers-7d3930a2fd71774fdec063160ebd168bbff6db8b.tar.gz
flatbuffers-7d3930a2fd71774fdec063160ebd168bbff6db8b.tar.bz2
flatbuffers-7d3930a2fd71774fdec063160ebd168bbff6db8b.zip
Repair `fallthrough` was broken by d4493165 (#5115) (#5139)
- GCC: fixed broken `fallthrough` (checked with 7.3 and 8.2) - Clang: added `fallthrough` support - Clang: added `-Wimplicit-fallthrough` checking
Diffstat (limited to 'src/reflection.cpp')
-rw-r--r--src/reflection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflection.cpp b/src/reflection.cpp
index 1058f9d5..89ce7838 100644
--- a/src/reflection.cpp
+++ b/src/reflection.cpp
@@ -431,7 +431,7 @@ Offset<const Table *> CopyTable(FlatBufferBuilder &fbb,
break;
}
}
- // FALL-THRU
+ FLATBUFFERS_FALLTHROUGH(); // fall thru
default: { // Scalars and structs.
auto element_size = GetTypeSize(element_base_type);
if (elemobjectdef && elemobjectdef->is_struct())
@@ -466,7 +466,7 @@ Offset<const Table *> CopyTable(FlatBufferBuilder &fbb,
break;
}
}
- // ELSE FALL-THRU
+ FLATBUFFERS_FALLTHROUGH(); // fall thru
case reflection::Union:
case reflection::String:
case reflection::Vector: