From 55dd4a18bb006aac9e6adc9bac7a4e69d3452597 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 9 Mar 2026 16:44:39 +0100 Subject: [PATCH] tests/checkasm/sw_ops: declare temporary arrays static These are quite large; GCC on my end warns about big stack allocations. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas --- tests/checkasm/sw_ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c index b20a7559f1..0eaca21402 100644 --- a/tests/checkasm/sw_ops.c +++ b/tests/checkasm/sw_ops.c @@ -117,10 +117,10 @@ static void check_ops(const char *report, const unsigned ranges[NB_PLANES], declare_func(void, const SwsOpExec *, const void *, int bx, int y, int bx_end, int y_end); - DECLARE_ALIGNED_64(char, src0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; - DECLARE_ALIGNED_64(char, src1)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; - DECLARE_ALIGNED_64(char, dst0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; - DECLARE_ALIGNED_64(char, dst1)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; + static DECLARE_ALIGNED_64(char, src0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; + static DECLARE_ALIGNED_64(char, src1)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; + static DECLARE_ALIGNED_64(char, dst0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; + static DECLARE_ALIGNED_64(char, dst1)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])]; if (!ctx) return;