From e7706429bba50256cd12549cef21f8e6b1bea117 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 15 Feb 2022 10:11:05 +0100 Subject: [PATCH] QLibrary: add a #warning if the fall-back plugin-meta-data parser is used Change-Id: I4b42f8dbc9fb03fc6e7243ed4914acfb1bdfe62a Reviewed-by: Thiago Macieira --- src/corelib/plugin/qlibrary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index ac33f16268..7cb555634c 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -209,6 +209,8 @@ static QLibraryScanResult qt_find_pattern(const char *s, qsizetype s_len, QStrin return QMachOParser::parse(s, s_len, errMsg); #elif defined(Q_OS_WIN) return QCoffPeParser::parse({s, s_len}, errMsg); +#else +# warning "Qt does not know how to efficiently parse your platform's binary format; using slow fall-back." #endif static constexpr auto matcher = [] { // QPluginMetaData::MagicString is not NUL-terminated, but