dzn: Build failure with MSYS2 MinGW-W64 clang
Tested 22.3.0
FAILED: src/microsoft/vulkan/vulkan_dzn.dll.p/dzn_descriptor_set.c.obj
"clang" "-Isrc/microsoft/vulkan/vulkan_dzn.dll.p" "-Isrc/microsoft/vulkan" "-I../../src/microsoft/vulkan" "-Iinclude" "-I../../include" "-Isrc" "-I../../src" "-Isrc/mapi" "-I../../src/mapi" "-Isrc/mesa" "-I../../src/mesa" "-I../../src/gallium/include" "-Isrc/gallium/auxiliary" "-I../../src/gallium/auxiliary" "-Isrc/compiler" "-I../../src/compiler" "-Isrc/util" "-I../../src/util" "-Isrc/microsoft/compiler" "-I../../src/microsoft/compiler" "-Isrc/microsoft/spirv_to_dxil" "-I../../src/microsoft/spirv_to_dxil" "-Isrc/compiler/nir" "-I../../src/compiler/nir" "-Isrc/vulkan/util" "-I../../src/vulkan/util" "-Isrc/vulkan/runtime" "-I../../src/vulkan/runtime" "-Isrc/vulkan/wsi" "-I../../src/vulkan/wsi" "-fvisibility=hidden" "-fcolor-diagnostics" "-DNDEBUG" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-std=c11" "-O3" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DPACKAGE_VERSION=\"22.3.0\"" "-DPACKAGE_BUGREPORT=\"https://gitlab.freedesktop.org/mesa/mesa/-/issues\"" "-DHAVE_SWRAST" "-DHAVE_ZINK" "-DHAVE_D3D12" "-DVIDEO_CODEC_VC1DEC=0" "-DVIDEO_CODEC_H264DEC=0" "-DVIDEO_CODEC_H264ENC=0" "-DVIDEO_CODEC_H265DEC=0" "-DVIDEO_CODEC_H265ENC=0" "-DHAVE_WINDOWS_PLATFORM" "-DHAVE_SURFACELESS_PLATFORM" "-DHAVE_GALLIUM_D3D12_VIDEO" "-DENABLE_ST_OMX_BELLAGIO=0" "-DENABLE_ST_OMX_TIZONIA=0" "-DHAVE___BUILTIN_BSWAP32" "-DHAVE___BUILTIN_BSWAP64" "-DHAVE___BUILTIN_CLZ" "-DHAVE___BUILTIN_CLZLL" "-DHAVE___BUILTIN_CTZ" "-DHAVE___BUILTIN_EXPECT" "-DHAVE___BUILTIN_FFS" "-DHAVE___BUILTIN_FFSLL" "-DHAVE___BUILTIN_POPCOUNT" "-DHAVE___BUILTIN_POPCOUNTLL" "-DHAVE___BUILTIN_UNREACHABLE" "-DHAVE___BUILTIN_TYPES_COMPATIBLE_P" "-DHAVE_FUNC_ATTRIBUTE_CONST" "-DHAVE_FUNC_ATTRIBUTE_FLATTEN" "-DHAVE_FUNC_ATTRIBUTE_MALLOC" "-DHAVE_FUNC_ATTRIBUTE_PURE" "-DHAVE_FUNC_ATTRIBUTE_UNUSED" "-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT" "-DHAVE_FUNC_ATTRIBUTE_WEAK" "-DHAVE_FUNC_ATTRIBUTE_FORMAT" "-DHAVE_FUNC_ATTRIBUTE_PACKED" "-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL" "-DHAVE_FUNC_ATTRIBUTE_ALIAS" "-DHAVE_FUNC_ATTRIBUTE_NORETURN" "-DHAVE_FUNC_ATTRIBUTE_VISIBILITY" "-DHAVE_UINT128" "-D_WINDOWS" "-D_WIN32_WINNT=0x0A00" "-DWINVER=0x0A00" "-DPIPE_SUBSYSTEM_WINDOWS_USER" "-D_USE_MATH_DEFINES" "-DUSE_SSE41" "-DUSE_GCC_ATOMIC_BUILTINS" "-DHAS_SCHED_H" "-DHAVE_CET_H" "-DHAVE_STRTOF" "-DHAVE_TIMESPEC_GET" "-DHAVE_STRTOK_R" "-DHAVE_QSORT_S" "-DHAVE_STRUCT_TIMESPEC" "-DHAVE_ZLIB" "-DHAVE_ZSTD" "-DHAVE_COMPRESSION" "-DWIN32_LEAN_AND_MEAN" "-DWINDOWS_NO_FUTEX" "-DLLVM_AVAILABLE" "-DMESA_LLVM_VERSION_STRING=\"15.0.5\"" "-DLLVM_IS_SHARED=1" "-DDRAW_LLVM_AVAILABLE" "-DUSE_LIBELF" "-DMESA_EXECMEM" "-Werror=implicit-function-declaration" "-Werror=missing-prototypes" "-Werror=return-type" "-Werror=empty-body" "-Werror=incompatible-pointer-types" "-Werror=int-conversion" "-Wimplicit-fallthrough" "-Wno-missing-field-initializers" "-fno-math-errno" "-fno-trapping-math" "-Qunused-arguments" "-fno-common" "-Wno-microsoft-enum-value" "-Wno-unused-function" "-Werror=thread-safety" "-ffunction-sections" "-fdata-sections" "-Wno-unused-variable" "-Wno-unused-but-set-variable" "-march=core2" "-pipe" "-isystem../../subprojects/DirectX-Headers-1.0/include" "-DVK_USE_PLATFORM_WIN32_KHR" "-Werror=unused-variable" "-Werror=unused-but-set-variable" "-Werror=unused-value" "-Werror=format" "-Werror=switch" -MD -MQ src/microsoft/vulkan/vulkan_dzn.dll.p/dzn_descriptor_set.c.obj -MF "src/microsoft/vulkan/vulkan_dzn.dll.p/dzn_descriptor_set.c.obj.d" -o src/microsoft/vulkan/vulkan_dzn.dll.p/dzn_descriptor_set.c.obj "-c" ../../src/microsoft/vulkan/dzn_descriptor_set.c
../../src/microsoft/vulkan/dzn_descriptor_set.c:648:13: error: variable 'root_dwords' set but not used [-Werror,-Wunused-but-set-variable]
uint32_t root_dwords = 0;
^
1 error generated.
[824/1620] Linking target src/microsoft/clc/clc_compiler_test.exe
[825/1620] Compiling C object src/microsoft/vulkan/vulkan_dzn.dll.p/dzn_device.c.obj
ninja: build stopped: subcommand failed.