From: Eric Anholt Date: Fri, 14 Aug 2020 18:56:18 +0000 (-0700) Subject: freedreno/ir3: Fix compiler warning from the setjmp fails path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=803ec06b1b3455cb320e69ae34673be12aef01ec;p=mesa.git 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: --- 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; }