From 93123aa03dbe1ee1ff4616c281c892ca4c63363f Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Thu, 12 Jul 2018 10:32:51 +1000 Subject: Disable build on QNX, INTEGRITY, VxWorks, WinRT Change-Id: I44ad9b8ad63c72393e27138532cab110b9862a1a Reviewed-by: Matthew Vogt --- src/contacts/qcontactdetail_p.h | 4 ++++ src/contacts/qcontactspluginsearch_p.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/contacts/qcontactdetail_p.h b/src/contacts/qcontactdetail_p.h index c2cf23108..e75de64e2 100644 --- a/src/contacts/qcontactdetail_p.h +++ b/src/contacts/qcontactdetail_p.h @@ -382,6 +382,8 @@ public: case Variant: return equal(us, them, member); default: qFatal("Unsupported field type"); } + Q_UNREACHABLE(); + return false; } template @@ -406,6 +408,8 @@ public: case Variant: return *memberVariable(us, member.offset); default: qFatal("Unsupported field type"); } + Q_UNREACHABLE(); + return false; } private: diff --git a/src/contacts/qcontactspluginsearch_p.h b/src/contacts/qcontactspluginsearch_p.h index 29ce0a93a..b10c88e84 100644 --- a/src/contacts/qcontactspluginsearch_p.h +++ b/src/contacts/qcontactspluginsearch_p.h @@ -70,7 +70,10 @@ inline QStringList mobilityPlugins(const QString& plugintype) const bool showDebug = qgetenv("QT_DEBUG_PLUGINS").toInt() > 0; #endif - QStringList paths = QCoreApplication::libraryPaths(); + QStringList paths; +#ifndef QT_NO_LIBRARY + paths = QCoreApplication::libraryPaths(); +#endif #ifdef QTM_PLUGIN_PATH paths << QLatin1String(QTM_PLUGIN_PATH); #endif -- cgit v1.2.3