diff --git a/cpukit/libdebugger/rtems-debugger-arm.c b/cpukit/libdebugger/rtems-debugger-arm.c index ebedbe3c7a..79f92bd990 100644 --- a/cpukit/libdebugger/rtems-debugger-arm.c +++ b/cpukit/libdebugger/rtems-debugger-arm.c @@ -546,6 +546,8 @@ arm_debug_authentication(uint32_t dbgauthstatus) static int arm_debug_cp14_enable(rtems_debugger_target* target) { + (void) target; + uint32_t val; ARM_CP14_READ(val, 7, 14, 6); if (!arm_debug_authentication(val)) @@ -856,6 +858,8 @@ arm_debug_rom_discover(uint32_t* rom, uint32_t comp, uint32_t** addr, int* index static int arm_debug_mmap_enable(rtems_debugger_target* target, uint32_t dbgdidr) { + (void) target; + uint32_t val; int rc = -1; @@ -1220,6 +1224,8 @@ arm_debug_set_context_id(const uint32_t id) { #if ARM_CP15 ARM_CP15_WRITE(id, 0, 13, 0, 1); +#else + (void) id; #endif } @@ -1333,6 +1339,8 @@ rtems_debugger_target_configure(rtems_debugger_target* target) static void target_print_frame(CPU_Exception_frame* frame) { + (void) frame; + EXC_FRAME_PRINT(target_printk, "[} ", frame); } diff --git a/cpukit/libdl/rtl-mdreloc-arm.c b/cpukit/libdl/rtl-mdreloc-arm.c index 1ca0af34e1..6bf68967cc 100644 --- a/cpukit/libdl/rtl-mdreloc-arm.c +++ b/cpukit/libdl/rtl-mdreloc-arm.c @@ -158,6 +158,8 @@ uint32_t rtems_rtl_elf_section_flags (const rtems_rtl_obj* obj, const Elf_Shdr* shdr) { + (void) obj; + uint32_t flags = 0; if (shdr->sh_type == SHT_ARM_EXIDX) flags = RTEMS_RTL_OBJ_SECT_EH | RTEMS_RTL_OBJ_SECT_LOAD; @@ -199,6 +201,8 @@ rtems_rtl_elf_arch_section_free (const rtems_rtl_obj* obj, bool rtems_rtl_elf_rel_resolve_sym (Elf_Word type) { + (void) type; + return true; } @@ -247,6 +251,9 @@ rtems_rtl_elf_reloc_rel (rtems_rtl_obj* obj, const Elf_Word symvalue, const bool parsing) { + (void) symname; + (void) syminfo; + Elf_Addr *where; Elf_Addr tmp; Elf_Word insn, addend; diff --git a/cpukit/libdl/rtl-unwind-arm.c b/cpukit/libdl/rtl-unwind-arm.c index 35361fe8d5..41656a8f30 100644 --- a/cpukit/libdl/rtl-unwind-arm.c +++ b/cpukit/libdl/rtl-unwind-arm.c @@ -5,6 +5,10 @@ rtems_rtl_elf_unwind_parse (const rtems_rtl_obj* obj, const char* name, uint32_t flags) { + (void) obj; + (void) name; + (void) flags; + /* * We location the EH sections in section flags. */ @@ -14,6 +18,8 @@ rtems_rtl_elf_unwind_parse (const rtems_rtl_obj* obj, bool rtems_rtl_elf_unwind_register (rtems_rtl_obj* obj) { + (void) obj; + return true; } diff --git a/cpukit/score/cpu/arm/arm-exception-frame-print.c b/cpukit/score/cpu/arm/arm-exception-frame-print.c index b089648184..f519a0ff10 100644 --- a/cpukit/score/cpu/arm/arm-exception-frame-print.c +++ b/cpukit/score/cpu/arm/arm-exception-frame-print.c @@ -73,6 +73,8 @@ static void _ARM_VFP_context_print( const ARM_VFP_context *vfp_context ) printk( "D%02i = 0x%08" PRIx32 "%08" PRIx32 "\n", i, high, low ); } } +#else + (void) vfp_context; #endif } diff --git a/cpukit/score/cpu/arm/armv7-thread-idle.c b/cpukit/score/cpu/arm/armv7-thread-idle.c index 720cb2be83..22f97b2f8a 100644 --- a/cpukit/score/cpu/arm/armv7-thread-idle.c +++ b/cpukit/score/cpu/arm/armv7-thread-idle.c @@ -43,6 +43,8 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ) { + (void) ignored; + while ( true ) { #ifdef ARM_MULTILIB_HAS_WFI __asm__ volatile ("wfi"); diff --git a/cpukit/score/cpu/arm/armv7m-context-initialize.c b/cpukit/score/cpu/arm/armv7m-context-initialize.c index d67bcf93b5..1bc5637a1a 100644 --- a/cpukit/score/cpu/arm/armv7m-context-initialize.c +++ b/cpukit/score/cpu/arm/armv7m-context-initialize.c @@ -56,6 +56,9 @@ void _CPU_Context_Initialize( void *tls_area ) { + (void) new_level; + (void) is_fp; + char *stack_area_end = (char *) stack_area_begin + stack_area_size; memset(context, 0, sizeof(*context)); diff --git a/cpukit/score/cpu/arm/armv7m-context-restore.c b/cpukit/score/cpu/arm/armv7m-context-restore.c index b888abe29f..726b924822 100644 --- a/cpukit/score/cpu/arm/armv7m-context-restore.c +++ b/cpukit/score/cpu/arm/armv7m-context-restore.c @@ -47,6 +47,8 @@ void __attribute__((naked)) _CPU_Context_restore( Context_Control *heir ) { + (void) heir; + __asm__ volatile ( "movw r2, #:lower16:_Per_CPU_Information\n" "movt r2, #:upper16:_Per_CPU_Information\n" diff --git a/cpukit/score/cpu/arm/armv7m-context-switch.c b/cpukit/score/cpu/arm/armv7m-context-switch.c index 74d6b953ef..52f373e37a 100644 --- a/cpukit/score/cpu/arm/armv7m-context-switch.c +++ b/cpukit/score/cpu/arm/armv7m-context-switch.c @@ -48,6 +48,9 @@ void __attribute__((naked)) _CPU_Context_switch( Context_Control *heir ) { + (void) executing; + (void) heir; + __asm__ volatile ( "movw r2, #:lower16:_Per_CPU_Information\n" "movt r2, #:upper16:_Per_CPU_Information\n" diff --git a/cpukit/score/cpu/arm/armv7m-isr-level-set.c b/cpukit/score/cpu/arm/armv7m-isr-level-set.c index 72c9684025..a149b1bfe2 100644 --- a/cpukit/score/cpu/arm/armv7m-isr-level-set.c +++ b/cpukit/score/cpu/arm/armv7m-isr-level-set.c @@ -43,6 +43,8 @@ void _CPU_ISR_Set_level( uint32_t level ) { + (void) level; + _ARMV7M_Set_basepri( 0 ); } diff --git a/cpukit/score/cpu/arm/armv7m-multitasking-start-stop.c b/cpukit/score/cpu/arm/armv7m-multitasking-start-stop.c index a9b59dec84..ad916ae42e 100644 --- a/cpukit/score/cpu/arm/armv7m-multitasking-start-stop.c +++ b/cpukit/score/cpu/arm/armv7m-multitasking-start-stop.c @@ -46,6 +46,8 @@ void __attribute__((naked)) _ARMV7M_Start_multitasking( Context_Control *heir ) { + (void) heir; + __asm__ volatile ( /* Restore heir context */ "ldr r2, [r0, %[spctxoff]]\n" diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c index 5312eb13bf..07b8bfe5ae 100644 --- a/cpukit/score/cpu/arm/cpu.c +++ b/cpukit/score/cpu/arm/cpu.c @@ -141,6 +141,7 @@ void _CPU_Context_Initialize( ) { (void) new_level; + (void) is_fp; the_context->register_sp = (uint32_t) stack_area_begin + stack_area_size; the_context->register_lr = (uint32_t) entry_point;