mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +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
@@ -411,10 +411,8 @@ CheckedError Parser::Next() {
|
||||
}
|
||||
cursor_ += 2;
|
||||
break;
|
||||
} else {
|
||||
// fall thru
|
||||
}
|
||||
FLATBUFFERS_ATTRIBUTE(fallthrough);
|
||||
FLATBUFFERS_FALLTHROUGH(); // else fall thru
|
||||
default:
|
||||
const auto has_sign = (c == '+') || (c == '-');
|
||||
// '-'/'+' and following identifier - can be a predefined constant like:
|
||||
|
||||
Reference in New Issue
Block a user