diff --git a/src/libs/qmuparser/text.h b/src/libs/qmuparser/text.h index 845690651..35645bfee 100644 --- a/src/libs/qmuparser/text.h +++ b/src/libs/qmuparser/text.h @@ -43,10 +43,10 @@ QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wunused-variable") QT_WARNING_DISABLE_CLANG("-Wunused-variable") -//static auto endl = ::endl; // NOLINT -//static auto flush = ::flush; // NOLINT -static auto dec = ::dec; // NOLINT -//static auto SkipEmptyParts = QString::SkipEmptyParts; // NOLINT +//static auto endl Q_DECL_UNUSED = ::endl; // NOLINT +//static auto flush Q_DECL_UNUSED = ::flush; // NOLINT +static auto dec Q_DECL_UNUSED = ::dec; // NOLINT +//static auto SkipEmptyParts Q_DECL_UNUSED = QString::SkipEmptyParts; // NOLINT QT_WARNING_POP } // namespace Qt diff --git a/src/libs/vmisc/backport/text.h b/src/libs/vmisc/backport/text.h index dc8ce8f78..1a5d08aca 100644 --- a/src/libs/vmisc/backport/text.h +++ b/src/libs/vmisc/backport/text.h @@ -43,10 +43,10 @@ QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wunused-variable") QT_WARNING_DISABLE_CLANG("-Wunused-variable") -static auto endl = ::endl; // NOLINT -static auto flush = ::flush; // NOLINT -static auto dec = ::dec; // NOLINT -static auto SkipEmptyParts = QString::SkipEmptyParts; // NOLINT +static auto endl Q_DECL_UNUSED = ::endl; // NOLINT +static auto flush Q_DECL_UNUSED = ::flush; // NOLINT +static auto dec Q_DECL_UNUSED = ::dec; // NOLINT +static auto SkipEmptyParts Q_DECL_UNUSED = QString::SkipEmptyParts; // NOLINT QT_WARNING_POP } // namespace Qt