diff --git a/runtime/platform/compiler.h b/runtime/platform/compiler.h index b6f7fc8642..2ef2c62e4b 100644 --- a/runtime/platform/compiler.h +++ b/runtime/platform/compiler.h @@ -75,8 +75,6 @@ #endif // defined(__GNUC__) -#if (__cplusplus) >= 201703L - #define ET_DEPRECATED [[deprecated]] #define ET_EXPERIMENTAL \ [[deprecated("This API is experimental and may change without notice.")]] @@ -84,18 +82,6 @@ #define ET_NODISCARD [[nodiscard]] #define ET_UNUSED [[maybe_unused]] -#else - -#define ET_DEPRECATED __attribute__((deprecated)) -#define ET_EXPERIMENTAL \ - __attribute__(( \ - deprecated("This API is experimental and may change without notice."))) -#define ET_FALLTHROUGH __attribute__((fallthrough)) -#define ET_NODISCARD __attribute__((warn_unused_result)) -#define ET_UNUSED __attribute__((unused)) - -#endif // (__cplusplus) >= 201703L - // UNLIKELY Macro // example // if ET_UNLIKELY(a > 10 && b < 5) {