diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index a9b412b7b1..7800b0e2c6 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -376,7 +376,7 @@ typedef double qreal; // A tag to help mark stuff deprecated (cf. QStringViewLiteral) namespace QtPrivate { enum class Deprecated_t {}; -[[maybe_unused]] constexpr Deprecated_t Deprecated = {}; +constexpr inline Deprecated_t Deprecated = {}; } #endif