diff --git a/arch/sim/src/sim/sim_internal.h b/arch/sim/src/sim/sim_internal.h index 3805b5770c..db38387173 100644 --- a/arch/sim/src/sim/sim_internal.h +++ b/arch/sim/src/sim/sim_internal.h @@ -89,13 +89,11 @@ ({ \ irqstate_t flags = up_irq_flags(); \ uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \ - int ret; \ \ env[0] = flags & UINT32_MAX; \ env[1] = (flags >> 32) & UINT32_MAX; \ \ - ret = setjmp(saveregs); \ - ret; \ + setjmp(saveregs); \ }) #define sim_fullcontextrestore(restoreregs) \ do \