rename __suppress_ubsan to FLATBUFFERS_SUPPRESS_UBSAN

This commit is contained in:
Derek Bailey
2023-05-10 14:16:31 -07:00
parent 85f71321fd
commit b5957975c5
3 changed files with 11 additions and 11 deletions

View File

@@ -177,7 +177,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
return true;
}
__suppress_ubsan__("unsigned-integer-overflow") bool VerifyTableStart(
FLATBUFFERS_SUPPRESS_UBSAN("unsigned-integer-overflow") bool VerifyTableStart(
const uint8_t *const table) {
// Check the vtable offset.
const auto tableo = static_cast<size_t>(table - buf_);