From 803ec06b1b3455cb320e69ae34673be12aef01ec Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 14 Aug 2020 11:56:18 -0700 Subject: [PATCH] freedreno/ir3: Fix compiler warning from the setjmp fails path. The TRY() macro doesn't call the contents if we fail to set up setjmp/longjmp. Fixes: 3d6e4a201af0 ("freedreno/decode: try harder to not crash in disasm") Part-of: --- src/freedreno/ir3/disasm-a3xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/disasm-a3xx.c b/src/freedreno/ir3/disasm-a3xx.c index 29c78ad5e18..02ab47a8875 100644 --- a/src/freedreno/ir3/disasm-a3xx.c +++ b/src/freedreno/ir3/disasm-a3xx.c @@ -1709,7 +1709,7 @@ int disasm_a3xx(uint32_t *dwords, int sizedwords, int level, FILE *out, unsigned int try_disasm_a3xx(uint32_t *dwords, int sizedwords, int level, FILE *out, unsigned gpu_id) { struct shader_stats stats; - int ret; + int ret = -1; TRY(ret = disasm_a3xx_stat(dwords, sizedwords, level, out, gpu_id, &stats)); return ret; } -- 2.30.2