mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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:
@@ -76,5 +76,5 @@ void *sim_doirq(int irq, void *context)
|
||||
sim_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
return regs;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user