sim: fix compile warning
sim/sim_doirq.c: In function 'sim_doirq': Error: sim/sim_doirq.c:79:10: error: function may return address of local variable [-Werror=return-local-addr] 79 | return regs; | ^~~~ sim/sim_doirq.c:44:14: note: declared here 44 | xcpt_reg_t tmp[XCPTCONTEXT_REGS]; | ^~~ Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
16367aa084
commit
9b35a2e1a1
|
@ -76,5 +76,5 @@ void *sim_doirq(int irq, void *context)
|
|||
sim_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
return regs;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue