diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h index f3cd8b7290d..5e6411c41a2 100644 --- a/runtime/platform/assert.h +++ b/runtime/platform/assert.h @@ -74,6 +74,7 @@ * @param[in] _cond Condition asserted as true. */ #define ET_DCHECK(_cond) ((void)0) +#define ET_DEBUG_ONLY [[maybe_unused]] #else // NDEBUG @@ -95,6 +96,7 @@ * @param[in] _cond Condition asserted as true. */ #define ET_DCHECK(_cond) ET_CHECK(_cond) +#define ET_DEBUG_ONLY #endif // NDEBUG