From b8408fe39b7ad8932b6436e3bae362a49a5526d6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 Jul 2025 12:51:56 -0500 Subject: [PATCH] score/cpu/mips/include/rtems/score/cpu.h: Add single field to structure GCC warned that the Context_Control_fp structure had no fields. Added an unused field when there is no FP support. --- cpukit/score/cpu/mips/include/rtems/score/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/score/cpu/mips/include/rtems/score/cpu.h b/cpukit/score/cpu/mips/include/rtems/score/cpu.h index e5680f51a5..0a5186c67a 100644 --- a/cpukit/score/cpu/mips/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/include/rtems/score/cpu.h @@ -332,6 +332,8 @@ typedef struct { __MIPS_FPU_REGISTER_TYPE fp30; __MIPS_FPU_REGISTER_TYPE fp31; uint32_t fpcs; +#else + uint32_t unused; /* avoid empty structure warning */ #endif } Context_Control_fp;