mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
- GCC: fixed broken `fallthrough` (checked with 7.3 and 8.2) - Clang: added `fallthrough` support - Clang: added `-Wimplicit-fallthrough` checking
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
347dba8501
commit
7d3930a2fd
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user