From 3674791ba86914e78e64eae6bc895d1bea2fdcd5 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 7 Sep 2020 13:42:59 +0200 Subject: [PATCH] Clang 10: Fix missing-exception-spec error on Windows Fix error qtbase/src/plugins/platforms/windows/qwindowsdropdataobject.cpp:67:25: error: 'GetData' is missing exception specification '__attribute__((nothrow))' [-Werror,-Wmissing-exception-spec] QWindowsDropDataObject::GetData(LPFORMATETC pformatetc, LPSTGMEDIUM pmedium) Follow the example of just disabling microsoft-exception-spec here. Change-Id: I61feb59e188bff7fdfb30e88f8a06c61ec808828 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowscombase.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/windows/qwindowscombase.h b/src/plugins/platforms/windows/qwindowscombase.h index 9f6f11170f..749ad50234 100644 --- a/src/plugins/platforms/windows/qwindowscombase.h +++ b/src/plugins/platforms/windows/qwindowscombase.h @@ -109,6 +109,7 @@ private: // Clang does not consider __declspec(nothrow) as nothrow QT_WARNING_DISABLE_CLANG("-Wmicrosoft-exception-spec") +QT_WARNING_DISABLE_CLANG("-Wmissing-exception-spec") QT_END_NAMESPACE