From 4cad79e4450180e8568bb16d06b5d6806b2db35b Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Fri, 1 Jan 2021 23:15:51 +0100 Subject: shut up a silly -Wmaybe-uninitialized warning I understand why the compiler would complain about this 'maybe-uninitialized' variable (it's always initialized when used) but I don't understand why the warning suddenly occurs while the variable have already been dereferenced several times; But well ... Initialize it with NULL to shut up the warning. Signed-off-by: Luc Van Oostenryck --- simplify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplify.c b/simplify.c index 12482d78..b0d2c1b5 100644 --- a/simplify.c +++ b/simplify.c @@ -1718,7 +1718,7 @@ static int simplify_compare(struct instruction *insn) { pseudo_t src1 = insn->src1; pseudo_t src2 = insn->src2; - struct instruction *def; + struct instruction *def = NULL; unsigned int osize; pseudo_t src; -- cgit 1.2.3-korg