mirror of https://github.com/qt/qtdoc.git
CMake: Mark qtdoc examples as warnings clean
Fix the few warnings in the examples that were discovered during the test process. Task-number: QTBUG-108448 Change-Id: I40b71f679eccd4e0ebbcc8362a7b65f017927d02 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
59dbbb39d2
commit
7f68699392
|
@ -2,3 +2,5 @@ set(QT_REPO_MODULE_VERSION "6.11.0")
|
|||
set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
|
||||
set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_AS_CONST=1")
|
||||
list(APPEND QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_FOREACH=1")
|
||||
|
||||
set(QT_REPO_EXAMPLES_WARNINGS_CLEAN TRUE)
|
||||
|
|
|
@ -93,6 +93,7 @@ void LightningItemModel::getLatestStrikeInfo(const QGeoCoordinate &searchCenter,
|
|||
|
||||
int LightningItemModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
return m_data.size();
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,12 @@
|
|||
#include <QGeoPolygon>
|
||||
#include <QRandomGenerator>
|
||||
#include <QThreadPool>
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_CLANG("-Wunused-but-set-variable")
|
||||
QT_WARNING_DISABLE_GCC("-Wunused-but-set-variable")
|
||||
#include "3rdparty/mapbox/earcut.h"
|
||||
QT_WARNING_POP
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
|
|
Loading…
Reference in New Issue