From cfd10a729d9b39a304dfe9b7e91ca86a84dcec7b Mon Sep 17 00:00:00 2001 From: Karmjit Mahil Date: Fri, 12 Dec 2025 10:40:08 +0000 Subject: [PATCH] gallium: Fix gnu-empty-initalizer error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses: ``` ../src/gallium/auxiliary/hud/hud_context.c:498:42: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] struct pipe_resource *releasebuf[3] = {}; ^ ../src/gallium/auxiliary/postprocess/pp_mlaa.c:76:42: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] struct pipe_resource *releasebuf[2] = {}; ^ ``` Fixes: 51605bfac2e ("gallium: Make upload_cb0 return a releasebuf") Signed-off-by: Karmjit Mahil Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/hud/hud_context.c | 2 +- src/gallium/auxiliary/postprocess/pp_mlaa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 510bcccfc01..a9bc1693a72 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -495,7 +495,7 @@ hud_draw_results(struct hud_context *hud, struct pipe_resource *tex) const struct pipe_sampler_state *sampler_states[] = { &hud->font_sampler_state }; struct hud_pane *pane; - struct pipe_resource *releasebuf[3] = {}; + struct pipe_resource *releasebuf[3] = { 0 }; if (!huds_visible) return; diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.c b/src/gallium/auxiliary/postprocess/pp_mlaa.c index 887618b9d66..2e5aefc28df 100644 --- a/src/gallium/auxiliary/postprocess/pp_mlaa.c +++ b/src/gallium/auxiliary/postprocess/pp_mlaa.c @@ -73,7 +73,7 @@ pp_jimenezmlaa_run(struct pp_queue_t *ppq, struct pipe_resource *in, const struct pipe_stencil_ref ref = { {1} }; - struct pipe_resource *releasebuf[2] = {}; + struct pipe_resource *releasebuf[2] = { 0 }; /* Insufficient initialization checks. */ assert(p);