QLinuxFbIntegration: silence -Wunused-private-field

when configured without `evdev`, clang emits -Wunused-private-field

Pick-to: 6.8
Change-Id: Ia4ff59c002c1a00ef1b445520c28db0d932ee564
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit eb6042f915c27a9988392eb3ea4bf4b5830cc7d7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tim Blechmann 2025-04-01 10:08:32 +08:00 committed by Qt Cherry-pick Bot
parent 5a73a80943
commit 21b219f6b7
2 changed files with 4 additions and 3 deletions

View File

@ -40,8 +40,7 @@ using namespace Qt::StringLiterals;
QLinuxFbIntegration::QLinuxFbIntegration(const QStringList &paramList)
: m_primaryScreen(nullptr),
m_fontDb(new QGenericUnixFontDatabase),
m_kbdMgr(nullptr)
m_fontDb(new QGenericUnixFontDatabase)
{
#if QT_CONFIG(kms)
if (qEnvironmentVariableIntValue("QT_QPA_FB_DRM") != 0)

View File

@ -56,7 +56,9 @@ private:
mutable QScopedPointer<QPlatformServices> m_services;
QScopedPointer<QFbVtHandler> m_vtHandler;
QEvdevKeyboardManager *m_kbdMgr;
#if QT_CONFIG(evdev)
QEvdevKeyboardManager *m_kbdMgr = nullptr;
#endif
};
QT_END_NAMESPACE