Qt: Silence new warning from VS2026

This commit is contained in:
Stenzek
2025-11-13 22:00:23 +10:00
parent df547195ae
commit ef2086b2c3

View File

@@ -5,6 +5,15 @@
#include "core/pch.h"
#ifdef _MSC_VER
// Disable C4251 outside of Qt code too, because not all headers are included here.
#pragma warning(disable : 4251) // warning C4251: 'QLayoutItem::align': 'QFlags<Qt::AlignmentFlag>' needs to have
// dll-interface to be used by clients of 'QLayoutItem'
#pragma warning(push)
#pragma warning(disable : 4864) // warning C4864: expected 'template' keyword before dependent template name
#endif
#include <QtCore/QByteArray>
#include <QtCore/QMetaType>
#include <QtCore/QObject>
@@ -12,3 +21,7 @@
#include <QtCore/QString>
#include <QtCore/QtCore>
#include <QtWidgets/QWidget>
#ifdef _MSC_VER
#pragma warning(pop)
#endif