Compare commits

..

2 commits

Author SHA1 Message Date
Roman Telezhynskyi 41bcc2a4b4 Move QT_WARNING_DISABLE inside Qt namespace. 2023-02-22 09:48:51 +02:00
Roman Telezhynskyi a66b050ecd Suppress warnings. 2023-02-22 08:46:16 +02:00
2 changed files with 35 additions and 11 deletions

View file

@ -32,13 +32,25 @@
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#include <QTextStream>
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "qmudef.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
namespace Qt
{
//static auto endl = ::endl;
//static auto flush = ::flush;
static auto dec = ::dec;
//static auto SkipEmptyParts = QString::SkipEmptyParts;
}
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
QT_WARNING_POP
} // namespace Qt
#endif
#endif // TEXT_H

View file

@ -29,16 +29,28 @@
#define TEXT_H
#include <QtGlobal>
#include <QString>
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#include <QTextStream>
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
namespace Qt
{
static auto endl = ::endl;
static auto flush = ::flush;
static auto dec = ::dec;
static auto SkipEmptyParts = QString::SkipEmptyParts;
}
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
QT_WARNING_POP
} // namespace Qt
#endif
#endif // TEXT_H