tests: Fix the compile warning for arc
the following compile warning will fail the CI: /zephyr/tests/kernel/fp_sharing/generic/src/float_regs_arc_gcc.h: 41:8: error: /unused variable 'temp' [-Werror=unused-variable] /zephyr/tests/kernel/fp_sharing/generic/src/float_regs_arc_gcc.h: 75:8: error: /unused variable 'temp' [-Werror=unused-variable] cc1: all warnings being treated as errors Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
4c8d127966
commit
f8edd95422
|
@ -38,9 +38,9 @@
|
|||
*/
|
||||
static inline void _load_all_float_registers(struct fp_register_set *regs)
|
||||
{
|
||||
#ifdef CONFIG_FP_FPU_DA
|
||||
u32_t temp = 0;
|
||||
|
||||
#ifdef CONFIG_FP_FPU_DA
|
||||
__asm__ volatile (
|
||||
"ld.ab %1, [%0, 4];\n\t"
|
||||
"sr %1, [%2];\n\t"
|
||||
|
@ -72,9 +72,9 @@ static inline void _load_all_float_registers(struct fp_register_set *regs)
|
|||
|
||||
static inline void _store_all_float_registers(struct fp_register_set *regs)
|
||||
{
|
||||
#ifdef CONFIG_FP_FPU_DA
|
||||
u32_t temp = 0;
|
||||
|
||||
#ifdef CONFIG_FP_FPU_DA
|
||||
__asm__ volatile (
|
||||
"lr %1, [%2];\n\t"
|
||||
"st.ab %1, [%0, 4];\n\t"
|
||||
|
|
Loading…
Reference in New Issue