cpukit or1k: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 16:21:23 -05:00
committed by Gedare Bloom
parent 9b3cb64b13
commit 0bd0ff6b3c
3 changed files with 8 additions and 0 deletions

View File

@@ -131,6 +131,8 @@ void _CPU_ISR_install_vector(
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
(void) ignored;
do {
_OR1K_CPU_Sleep();
} while (1);

View File

@@ -48,6 +48,10 @@ void _CPU_Context_Initialize(
void *tls_area
)
{
(void) new_level;
(void) is_fp;
(void) tls_area;
/* Decrement 200 byte to account for red-zone */
uint32_t stack = ((uint32_t) stack_area_begin) - 200;
uint32_t sr;

View File

@@ -37,5 +37,7 @@ void _OR1K_Exception_default(uint32_t vector, CPU_Exception_frame *frame);
void _OR1K_Exception_default(uint32_t vector, CPU_Exception_frame *frame)
{
(void) vector;
rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame );
}