Use Q_DECL_UNUSED to suppress warning.

This commit is contained in:
Roman Telezhynskyi 2023-02-22 12:30:35 +02:00
parent 41bcc2a4b4
commit bbff839210
2 changed files with 8 additions and 8 deletions

View File

@ -43,10 +43,10 @@ QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wunused-variable") QT_WARNING_DISABLE_GCC("-Wunused-variable")
QT_WARNING_DISABLE_CLANG("-Wunused-variable") QT_WARNING_DISABLE_CLANG("-Wunused-variable")
//static auto endl = ::endl; // NOLINT //static auto endl Q_DECL_UNUSED = ::endl; // NOLINT
//static auto flush = ::flush; // NOLINT //static auto flush Q_DECL_UNUSED = ::flush; // NOLINT
static auto dec = ::dec; // NOLINT static auto dec Q_DECL_UNUSED = ::dec; // NOLINT
//static auto SkipEmptyParts = QString::SkipEmptyParts; // NOLINT //static auto SkipEmptyParts Q_DECL_UNUSED = QString::SkipEmptyParts; // NOLINT
QT_WARNING_POP QT_WARNING_POP
} // namespace Qt } // namespace Qt

View File

@ -43,10 +43,10 @@ QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wunused-variable") QT_WARNING_DISABLE_GCC("-Wunused-variable")
QT_WARNING_DISABLE_CLANG("-Wunused-variable") QT_WARNING_DISABLE_CLANG("-Wunused-variable")
static auto endl = ::endl; // NOLINT static auto endl Q_DECL_UNUSED = ::endl; // NOLINT
static auto flush = ::flush; // NOLINT static auto flush Q_DECL_UNUSED = ::flush; // NOLINT
static auto dec = ::dec; // NOLINT static auto dec Q_DECL_UNUSED = ::dec; // NOLINT
static auto SkipEmptyParts = QString::SkipEmptyParts; // NOLINT static auto SkipEmptyParts Q_DECL_UNUSED = QString::SkipEmptyParts; // NOLINT
QT_WARNING_POP QT_WARNING_POP
} // namespace Qt } // namespace Qt