summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-05-26 03:00:15 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-05-26 03:00:15 +0200
commit3eb609a0a140650226483e02e9f0bed700853d6a (patch)
tree5485ce91a6833970e3fb0f72831fbd2d8c41275a
parent0affc08e2b3c21f1b8fb2f4c4e35315d52dc786d (diff)
parent1eba531d5b62bc171839d71e4a745ab9cdaaf907 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
-rw-r--r--src/client/qwaylandshmbackingstore.cpp4
-rw-r--r--src/compositor/wayland_wrapper/qwldatadevicemanager.cpp1
-rw-r--r--src/qtwaylandscanner/qtwaylandscanner.cpp1
-rw-r--r--tests/auto/client/client/tst_client.cpp8
4 files changed, 5 insertions, 9 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp
index cbfdf5157..54b0b798c 100644
--- a/src/client/qwaylandshmbackingstore.cpp
+++ b/src/client/qwaylandshmbackingstore.cpp
@@ -59,7 +59,9 @@
#ifdef Q_OS_LINUX
# include <sys/syscall.h>
// from linux/memfd.h:
-# define MFD_CLOEXEC 0x0001U
+# ifndef MFD_CLOEXEC
+# define MFD_CLOEXEC 0x0001U
+# endif
#endif
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp
index acca08e07..de62ffc3b 100644
--- a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp
+++ b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp
@@ -269,6 +269,7 @@ void DataDeviceManager::comp_destroy(wl_client *, wl_resource *)
}
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
+QT_WARNING_DISABLE_CLANG("-Wmissing-field-initializers")
const struct wl_data_offer_interface DataDeviceManager::compositor_offer_interface = {
DataDeviceManager::comp_accept,
diff --git a/src/qtwaylandscanner/qtwaylandscanner.cpp b/src/qtwaylandscanner/qtwaylandscanner.cpp
index 057002c9d..1b884a424 100644
--- a/src/qtwaylandscanner/qtwaylandscanner.cpp
+++ b/src/qtwaylandscanner/qtwaylandscanner.cpp
@@ -394,6 +394,7 @@ void process(QXmlStreamReader &xml, const QByteArray &headerPath, const QByteArr
printf("QT_BEGIN_NAMESPACE\n");
printf("QT_WARNING_PUSH\n");
printf("QT_WARNING_DISABLE_GCC(\"-Wmissing-field-initializers\")\n");
+ printf("QT_WARNING_DISABLE_CLANG(\"-Wmissing-field-initializers\")\n");
QByteArray serverExport;
if (headerPath.size()) {
serverExport = QByteArray("Q_WAYLAND_SERVER_") + preProcessorProtocolName + "_EXPORT";
diff --git a/tests/auto/client/client/tst_client.cpp b/tests/auto/client/client/tst_client.cpp
index 7a7c7fa85..21f748ecd 100644
--- a/tests/auto/client/client/tst_client.cpp
+++ b/tests/auto/client/client/tst_client.cpp
@@ -264,9 +264,6 @@ void tst_WaylandClient::windowScreens()
compositor->sendRemoveOutput(secondOutput);
QTRY_COMPARE(QGuiApplication::screens().size(), 1);
QCOMPARE(window.screen(), primaryScreen);
-
- window.destroy();
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::removePrimaryScreen()
@@ -298,9 +295,6 @@ void tst_WaylandClient::removePrimaryScreen()
QTRY_COMPARE(window.mousePressEventCount, 1);
compositor->sendMouseRelease(surface);
QTRY_COMPARE(window.mouseReleaseEventCount, 1);
-
- window.destroy();
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::createDestroyWindow()
@@ -532,8 +526,6 @@ void tst_WaylandClient::dontCrashOnMultipleCommits()
}
delete window;
-
- QTRY_VERIFY(!compositor->surface());
}
void tst_WaylandClient::hiddenTransientParent()