QLibrary: add a #warning if the fall-back plugin-meta-data parser is used

Change-Id: I4b42f8dbc9fb03fc6e7243ed4914acfb1bdfe62a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2022-02-15 10:11:05 +01:00
parent 773362fb68
commit e7706429bb

View File

@ -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