include/flatbuffers/base.h: fix no_sanitize issue with old clang (#5610)
authorEven Rouault <even.rouault@spatialys.com>
Mon, 4 Nov 2019 22:58:51 +0000 (23:58 +0100)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 4 Nov 2019 22:58:51 +0000 (14:58 -0800)
commit44b2ab087ca3bdecc218ad9fb7c56710cb5c26a6
tree013b455f83ed03fbe1db4b4af85605944d7c0954
parent46ae3f80a618d230bcdc7d743fac181200898ac8
include/flatbuffers/base.h: fix no_sanitize issue with old clang (#5610)

Older clang versions raise:
```
./flatbuffers/base.h:365:1: error: unknown attribute 'no_sanitize' ignored [-Werror,-Wattributes]
__supress_ubsan__("alignment")
^
./flatbuffers/base.h:246:50: note: expanded from macro '__supress_ubsan__'
  #define __supress_ubsan__(type) __attribute__((no_sanitize(type)))
                                                 ^
```

Comparing https://releases.llvm.org/3.6.0/tools/clang/docs/AttributeReference.html
with https://releases.llvm.org/3.7.0/tools/clang/docs/AttributeReference.html
shows that __attribute__((no_sanitize(type))) is available since 3.7.0
include/flatbuffers/base.h