From 055c3d3e1d75fedac44ffb41943350d9844f5b7e Mon Sep 17 00:00:00 2001 From: chenjh Date: Fri, 26 Feb 2021 18:23:52 +0800 Subject: [Update] Sync from v4.0.3 --- src/components.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components.c') diff --git a/src/components.c b/src/components.c index 8280056153..c25c91dcba 100644 --- a/src/components.c +++ b/src/components.c @@ -91,7 +91,7 @@ void rt_components_board_init(void) rt_kprintf(":%d done\n", result); } #else - const init_fn_t *fn_ptr; + volatile const init_fn_t *fn_ptr; for (fn_ptr = &__rt_init_rti_board_start; fn_ptr < &__rt_init_rti_board_end; fn_ptr++) { @@ -117,7 +117,7 @@ void rt_components_init(void) rt_kprintf(":%d done\n", result); } #else - const init_fn_t *fn_ptr; + volatile const init_fn_t *fn_ptr; for (fn_ptr = &__rt_init_rti_board_end; fn_ptr < &__rt_init_rti_end; fn_ptr ++) { -- cgit v1.3.1