From 01462c3d206f3ea625804923a332e0f4366fa786 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Feb 2024 10:30:31 +0200 Subject: [PATCH] Fix build. --- src/libs/vmisc/vabstractapplication.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libs/vmisc/vabstractapplication.cpp b/src/libs/vmisc/vabstractapplication.cpp index cbb3f3ed6..4f7041269 100644 --- a/src/libs/vmisc/vabstractapplication.cpp +++ b/src/libs/vmisc/vabstractapplication.cpp @@ -115,28 +115,26 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv) : QApplication(argc, argv), undoStack(new QUndoStack(this)) { - QString const rules; - #if defined(V_NO_ASSERT) + QString rules; + // Ignore SSL-related warnings // See issue #528: Error: QSslSocket: cannot resolve SSLv2_client_method. rules += "qt.network.ssl.warning=false\n"_L1; // See issue #568: Certificate checking on Mac OS X. rules += "qt.network.ssl.critical=false\n" "qt.network.ssl.fatal=false\n"_L1; -#endif // defined(V_NO_ASSERT) -#if defined(V_NO_ASSERT) // See issue #992: QXcbConnection: XCB Error. rules += "qt.qpa*=false\n"_L1; rules += "kf5.kio.core*=false\n"_L1; rules += "qt.gui.icc.warning=false\n"_L1; -#endif if (not rules.isEmpty()) { QLoggingCategory::setFilterRules(rules); } +#endif #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // Enable support for HiDPI bitmap resources