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:
ligd 2023-02-08 17:54:29 +08:00 committed by Xiang Xiao
parent 16367aa084
commit 9b35a2e1a1
1 changed files with 1 additions and 1 deletions

View File

@ -76,5 +76,5 @@ void *sim_doirq(int irq, void *context)
sim_fullcontextrestore(regs);
}
return regs;
return NULL;
}