From 48da4da700983b62e7a0e660f2a6b2cec0ab9bb2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 9 Feb 2017 10:17:14 +0100 Subject: Fix MSVC warning about imported symbols when linking qmlcachegen We don't have anything to export in qmldevtools, not even "autotest" exports. The warning was: qmlcachegen.obj : warning LNK4217: locally defined symbol ??0ExecutableAllocator@QV4@@QEAA@XZ (public: __cdecl QV4::ExecutableAllocator::ExecutableAllocator(void)) imported in function "bool __cdecl compileQmlFile(class QString const &,class QV4::EvalISelFactory *,struct Error *)" (?compileQmlFile@@YA_NAEBVQString@@PEAVEvalISelFactory@QV4@@PEAUError@@@Z) Change-Id: I5be9d905eee90615e2bb52fc110f81f2c558c7e6 Reviewed-by: Friedemann Kleint --- src/qmldevtools/qtqmldevtoolsglobal_p.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/qmldevtools') diff --git a/src/qmldevtools/qtqmldevtoolsglobal_p.h b/src/qmldevtools/qtqmldevtoolsglobal_p.h index 5c803a4b32..e1a01aa78d 100644 --- a/src/qmldevtools/qtqmldevtoolsglobal_p.h +++ b/src/qmldevtools/qtqmldevtoolsglobal_p.h @@ -58,5 +58,12 @@ QT_BEGIN_NAMESPACE #define Q_QML_EXPORT #define Q_QML_PRIVATE_EXPORT +/* Some classes built into QtQmlDevTools are marked Q_AUTOTEST_EXPORT but we + have nothing to export in this static library */ +#if defined(Q_AUTOTEST_EXPORT) +#undef Q_AUTOTEST_EXPORT +#endif +#define Q_AUTOTEST_EXPORT + QT_END_NAMESPACE #endif // QTQMLGLOBAL_P_H -- cgit v1.2.3