From f95385da2336e800957718460984ae1db966f26d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2025 15:59:47 -0500 Subject: [PATCH] m68k/genmcf548x/start/init548x.c: Fix warning for comparing two arrays GCC warnings when comparing the starting addresses of two arrays when using just the name of the array. Changes to use the address of element 0 which resolved the warning. --- bsps/m68k/genmcf548x/start/init548x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/m68k/genmcf548x/start/init548x.c b/bsps/m68k/genmcf548x/start/init548x.c index db8298c155..f695eb3d1a 100644 --- a/bsps/m68k/genmcf548x/start/init548x.c +++ b/bsps/m68k/genmcf548x/start/init548x.c @@ -95,13 +95,13 @@ void mcf548x_init(void) #endif /* defined(HAS_LOW_LEVEL_INIT) */ /* Copy the vector table to RAM if necessary */ - if (bsp_vector0_size == bsp_vector1_size) { + if (&bsp_vector0_size[0] == &bsp_vector1_size[0]) { memcpy(bsp_vector1_begin, bsp_vector0_begin, (size_t) bsp_vector1_size); m68k_set_vbr((uint32_t)bsp_vector1_begin); } /* Move initialized data from ROM to RAM. */ - if (bsp_section_data_begin != bsp_section_data_load_begin) { + if (&bsp_section_data_begin[0] != &bsp_section_data_load_begin[0]) { memcpy( bsp_section_data_begin, bsp_section_data_load_begin,