From 1e2cbd2c290d0bd5e6dba32f92b8ec7002f91b20 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sun, 1 Feb 2026 23:11:16 +0100 Subject: [PATCH] vulkan/runtime: Fix gnu-empty-initializer error in vk_pipeline.c Fixes the following building error happening with clang: FAILED: src/vulkan/runtime/libvulkan_runtime.a.p/vk_pipeline.c.o ... ../src/vulkan/runtime/vk_pipeline.c:3689:41: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] struct vk_shader *shaders[3] = {}; ^ 1 error generated. Fixes: 51966cc4 ("vulkan: add vk_shader_ops::replay_at vfunc stub") Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index 2a3482e0a9b..164c33ea84f 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -3686,7 +3686,7 @@ vk_create_rt_pipeline(struct vk_device *device, if (pipeline_flags & VK_PIPELINE_CREATE_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR) { const struct vk_device_shader_ops *ops = device->shader_ops; - struct vk_shader *shaders[3] = {}; + struct vk_shader *shaders[3] = {0}; for (uint32_t s = 0; s < group->stage_count; s++) shaders[s] = group->stages[s].shader; ops->replay_rt_shader_group(