From cbdd2d73532f0a4b33f9ff02f4384f9b1218c80d Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Fri, 24 Jan 2025 12:49:48 +0100 Subject: [PATCH] QRhiVulkan: disable -Wundef when including 3rd party headers The header is -Wundef-unclean. Change-Id: I30145f331ee1062961abaed14c7b79b84755abb9 Pick-to: 6.8 Reviewed-by: Laszlo Agocs (cherry picked from commit 349737c6a94a4628c262776b0b8a08bf24d46363) Reviewed-by: Qt Cherry-pick Bot --- src/gui/rhi/qrhivulkan.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp index cbca8c578dd..908bd653551 100644 --- a/src/gui/rhi/qrhivulkan.cpp +++ b/src/gui/rhi/qrhivulkan.cpp @@ -14,6 +14,8 @@ #endif QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wsuggest-override") +QT_WARNING_DISABLE_GCC("-Wundef") +QT_WARNING_DISABLE_CLANG("-Wundef") #if defined(Q_CC_CLANG) && Q_CC_CLANG >= 1100 QT_WARNING_DISABLE_CLANG("-Wdeprecated-copy") #endif