diff --git a/src/declarativeimports/core/windowthumbnail.cpp b/src/declarativeimports/core/windowthumbnail.cpp index 21ce9ecc8..5a5274e1e 100644 --- a/src/declarativeimports/core/windowthumbnail.cpp +++ b/src/declarativeimports/core/windowthumbnail.cpp @@ -203,6 +203,8 @@ bool WindowThumbnail::nativeEventFilter(const QByteArray &eventType, void *messa discardPixmap(); } } +#else + Q_UNUSED(message) #endif // do not filter out any events, there might be further WindowThumbnails for the same window return false;