Skip to content

Commit 9b35a2e

Browse files
GUIDINGLIxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 16367aa commit 9b35a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/sim/src/sim/sim_doirq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ void *sim_doirq(int irq, void *context)
7676
sim_fullcontextrestore(regs);
7777
}
7878

79-
return regs;
79+
return NULL;
8080
}

0 commit comments

Comments
 (0)