Use Q_DECL_UNUSED to suppress warning.
This commit is contained in:
parent
41bcc2a4b4
commit
bbff839210
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user