We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0dbfd commit f831ff9Copy full SHA for f831ff9
include/flatbuffers/base.h
@@ -242,7 +242,7 @@ namespace flatbuffers {
242
// Suppress Undefined Behavior Sanitizer (recoverable only). Usage:
243
// - __supress_ubsan__("undefined")
244
// - __supress_ubsan__("signed-integer-overflow")
245
-#if defined(__clang__)
+#if defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >=7))
246
#define __supress_ubsan__(type) __attribute__((no_sanitize(type)))
247
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 409)
248
#define __supress_ubsan__(type) __attribute__((no_sanitize_undefined))
0 commit comments