move [[ ]] to calling sites (#6914)

This commit is contained in:
Derek Bailey
2021-11-11 10:31:15 -08:00
committed by GitHub
parent 6c8c291559
commit 3fab0c6ee4
3 changed files with 4 additions and 4 deletions

View File

@@ -294,7 +294,7 @@ template<typename T> FLATBUFFERS_CONSTEXPR inline bool IsConstTrue(T t) {
#if ((__cplusplus >= 201703L) \
|| (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
// All attributes unknown to an implementation are ignored without causing an error.
#define FLATBUFFERS_ATTRIBUTE(attr) [[attr]]
#define FLATBUFFERS_ATTRIBUTE(attr) attr
#define FLATBUFFERS_FALLTHROUGH() [[fallthrough]]
#else