From 32cf9ea0c62171547cf78cfa865124d06980745c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 Jul 2025 14:39:34 -0500 Subject: [PATCH] score/cpu/moxie/.../cpu.h: Address unused variable warning The Moxie does not implement the interrupt disable/enable functions and this led to an unused variable warning. Just added proper annotation to let GCC know it is intentionally unused. --- cpukit/score/cpu/moxie/include/rtems/score/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/score/cpu/moxie/include/rtems/score/cpu.h b/cpukit/score/cpu/moxie/include/rtems/score/cpu.h index 69222937c9..aa64a9a528 100644 --- a/cpukit/score/cpu/moxie/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/moxie/include/rtems/score/cpu.h @@ -319,6 +319,8 @@ typedef struct { static inline bool _CPU_ISR_Is_enabled( uint32_t level ) { + (void) level; + return true; }