diff --git a/cpukit/dev/can/ctucanfd/ctucanfd.c b/cpukit/dev/can/ctucanfd/ctucanfd.c index 18b3b12c17..56c68e4a92 100644 --- a/cpukit/dev/can/ctucanfd/ctucanfd.c +++ b/cpukit/dev/can/ctucanfd/ctucanfd.c @@ -286,6 +286,9 @@ static int ctucanfd_check_state( struct ctucanfd_internal *internal, const char *where ) { + (void) internal; + (void) where; + return 0; } diff --git a/cpukit/include/rtems/score/objectimpl.h b/cpukit/include/rtems/score/objectimpl.h index a1a87b5ccb..21457303b9 100644 --- a/cpukit/include/rtems/score/objectimpl.h +++ b/cpukit/include/rtems/score/objectimpl.h @@ -476,6 +476,8 @@ static inline void _Objects_Namespace_remove_u32( Objects_Control *the_object ) { + (void) information; + _Assert( !_Objects_Has_string_name( information ) ); the_object->name.name_u32 = 0; } diff --git a/cpukit/include/rtems/score/schedulersmpimpl.h b/cpukit/include/rtems/score/schedulersmpimpl.h index c1839c4517..6077c3341c 100644 --- a/cpukit/include/rtems/score/schedulersmpimpl.h +++ b/cpukit/include/rtems/score/schedulersmpimpl.h @@ -1526,6 +1526,8 @@ static inline void _Scheduler_SMP_Yield( Scheduler_SMP_Enqueue_scheduled enqueue_scheduled ) { + (void) thread; + Scheduler_SMP_Node_state node_state; Priority_Control insert_priority; @@ -1807,6 +1809,8 @@ static inline void _Scheduler_SMP_Make_sticky( Scheduler_SMP_Enqueue enqueue ) { + (void) the_thread; + Scheduler_SMP_Node_state node_state; node_state = _Scheduler_SMP_Node_state( node ); @@ -1851,6 +1855,8 @@ static inline void _Scheduler_SMP_Clean_sticky( Scheduler_Release_idle_node release_idle_node ) { + (void) the_thread; + Scheduler_SMP_Node_state node_state; node_state = _Scheduler_SMP_Node_state( node ); @@ -1970,6 +1976,8 @@ static inline Thread_Control *_Scheduler_SMP_Remove_processor( Scheduler_Release_idle_node release_idle_node ) { + (void) extract_from_ready; + Scheduler_SMP_Context *self; Chain_Node *chain_node; Scheduler_Node *victim_node; @@ -2060,6 +2068,8 @@ static inline void _Scheduler_SMP_Set_affinity( Scheduler_Release_idle_node release_idle_node ) { + (void) thread; + Scheduler_SMP_Node_state node_state; Priority_Control insert_priority; diff --git a/cpukit/include/rtems/score/threadqimpl.h b/cpukit/include/rtems/score/threadqimpl.h index a38c948b81..bd32df1a19 100644 --- a/cpukit/include/rtems/score/threadqimpl.h +++ b/cpukit/include/rtems/score/threadqimpl.h @@ -652,6 +652,8 @@ static inline void _Thread_queue_Queue_do_acquire_critical( ) { #if defined(RTEMS_SMP) + (void) lock_context; + _SMP_ticket_lock_Acquire( &queue->Lock, lock_stats, @@ -685,6 +687,8 @@ static inline void _Thread_queue_Queue_release_critical( ) { #if defined(RTEMS_SMP) + (void) lock_context; + _SMP_ticket_lock_Release( &queue->Lock, &lock_context->Lock_context.Stats_context diff --git a/cpukit/include/rtems/score/tls.h b/cpukit/include/rtems/score/tls.h index 508fa52beb..4e15f6bdca 100644 --- a/cpukit/include/rtems/score/tls.h +++ b/cpukit/include/rtems/score/tls.h @@ -205,6 +205,7 @@ static inline void _TLS_Initialize_TCB_and_DTV( ) { #if defined(__i386__) || defined(__x86_64__) + (void) tls_data; (void) dtv; tcb->tcb = tcb; #else diff --git a/cpukit/libcsupport/src/kill_noposix.c b/cpukit/libcsupport/src/kill_noposix.c index ce24ae7828..add48517fa 100644 --- a/cpukit/libcsupport/src/kill_noposix.c +++ b/cpukit/libcsupport/src/kill_noposix.c @@ -36,6 +36,9 @@ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { + (void) pid; + (void) sig; + return 0; } @@ -44,6 +47,10 @@ int kill( pid_t pid, int sig ) int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { + (void) ptr; + (void) pid; + (void) sig; + return 0; } #endif diff --git a/cpukit/libdebugger/rtems-debugger-server.c b/cpukit/libdebugger/rtems-debugger-server.c index b698350fbe..299abb65c8 100644 --- a/cpukit/libdebugger/rtems-debugger-server.c +++ b/cpukit/libdebugger/rtems-debugger-server.c @@ -829,6 +829,9 @@ remote_packet_dispatch(const rtems_debugger_packet* packet, static int remote_detach(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + remote_packet_out_str(r_OK); remote_packet_out_send(); rtems_debugger_remote_disconnect(); @@ -838,12 +841,18 @@ remote_detach(uint8_t* buffer, int size) static int remote_ut_features(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + return -1; } static int remote_ut_osdata(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + return -1; } @@ -868,6 +877,9 @@ remote_gq_uninterpreted_transfer(uint8_t* buffer, int size) static int remote_gq_thread_info_subsequent(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + rtems_debugger_threads* threads = rtems_debugger->threads; if (threads->next >= threads->current.level) remote_packet_out_str("l"); @@ -901,6 +913,8 @@ remote_gq_thread_info_first(uint8_t* buffer, int size) static int remote_gq_thread_extra_info(uint8_t* buffer, int size) { + (void) size; + const char* comma; remote_packet_out_reset(); comma = strchr((const char*) buffer, ','); @@ -947,6 +961,8 @@ remote_gq_thread_extra_info(uint8_t* buffer, int size) static int remote_gq_supported(uint8_t* buffer, int size) { + (void) size; + uint32_t capabilities = rtems_debugger_target_capabilities(); const char* p; bool swbreak = false; @@ -1027,6 +1043,8 @@ remote_gq_supported(uint8_t* buffer, int size) static int remote_gq_attached(uint8_t* buffer, int size) { + (void) size; + const char* response = "1"; const char* colon = strchr((const char*) buffer, ':'); if (colon != NULL) { @@ -1178,6 +1196,8 @@ remote_general_query(uint8_t* buffer, int size) static int remote_gs_non_stop(uint8_t* buffer, int size) { + (void) size; + const char* response = r_E01; char* p = strchr((char*) buffer, ':'); if (p != NULL) { @@ -1214,6 +1234,9 @@ remote_general_set(uint8_t* buffer, int size) static int remote_v_stopped(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + rtems_debugger_threads* threads = rtems_debugger->threads; if (threads->next >= threads->stopped.level) remote_packet_out_str(r_OK); @@ -1245,6 +1268,8 @@ remote_stop_reason(uint8_t* buffer, int size) static int remote_v_continue(uint8_t* buffer, int size) { + (void) size; + buffer += 5; if (buffer[0] == '?') { @@ -1377,6 +1402,8 @@ remote_v_packets(uint8_t* buffer, int size) static int remote_thread_select(uint8_t* buffer, int size) { + (void) size; + const char* response = r_OK; int* index = NULL; @@ -1419,6 +1446,8 @@ remote_thread_select(uint8_t* buffer, int size) static int remote_thread_alive(uint8_t* buffer, int size) { + (void) size; + const char* response = r_E01; DB_UINT pid = 0; DB_UINT tid = 0; @@ -1438,12 +1467,18 @@ remote_thread_alive(uint8_t* buffer, int size) static int remote_argc_argv(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + return -1; } static int remote_continue_at(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + if (!rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_VCONT)) { char* vCont_c = "vCont;c:p1.-1"; return remote_v_continue((uint8_t*) vCont_c, strlen(vCont_c)); @@ -1454,6 +1489,9 @@ remote_continue_at(uint8_t* buffer, int size) static int remote_read_general_regs(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + rtems_debugger_threads* threads = rtems_debugger->threads; bool ok = false; int r; @@ -1512,6 +1550,8 @@ remote_write_general_regs(uint8_t* buffer, int size) static int remote_read_reg(uint8_t* buffer, int size) { + (void) size; + rtems_debugger_threads* threads = rtems_debugger->threads; bool ok = false; int r; @@ -1544,6 +1584,8 @@ remote_read_reg(uint8_t* buffer, int size) static int remote_write_reg(uint8_t* buffer, int size) { + (void) size; + rtems_debugger_threads* threads = rtems_debugger->threads; const char* response = r_E01; if (threads->selector_gen >= 0 @@ -1580,6 +1622,8 @@ remote_write_reg(uint8_t* buffer, int size) static int remote_read_memory(uint8_t* buffer, int size) { + (void) size; + const char* comma; comma = strchr((const char*) buffer, ','); if (comma == NULL) @@ -1609,6 +1653,8 @@ remote_read_memory(uint8_t* buffer, int size) static int remote_write_memory(uint8_t* buffer, int size) { + (void) size; + const char* response = r_E01; const char* comma; const char* colon; @@ -1638,6 +1684,9 @@ remote_write_memory(uint8_t* buffer, int size) static int remote_single_step(uint8_t* buffer, int size) { + (void) buffer; + (void) size; + if (!rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_VCONT)) { rtems_debugger_threads* threads = rtems_debugger->threads; if (threads != NULL && rtems_debugger_thread_current(threads) != NULL) { @@ -1658,6 +1707,8 @@ remote_single_step(uint8_t* buffer, int size) static int remote_breakpoints(bool insert, uint8_t* buffer, int size) { + (void) size; + const char* comma1; int r = -1; comma1 = strchr((const char*) buffer, ','); @@ -1793,6 +1844,8 @@ remote_packets(uint8_t* buffer, size_t size) static void rtems_debugger_events(rtems_task_argument arg) { + (void) arg; + int r = 0; if (rtems_debugger_verbose()) @@ -2052,6 +2105,8 @@ rtems_debugger_destroy(void) static void rtems_debugger_main(rtems_task_argument arg) { + (void) arg; + int r; rtems_debugger_lock(); diff --git a/cpukit/libdebugger/rtems-debugger-threads.c b/cpukit/libdebugger/rtems-debugger-threads.c index 841199bfe3..4ee15268a2 100644 --- a/cpukit/libdebugger/rtems-debugger-threads.c +++ b/cpukit/libdebugger/rtems-debugger-threads.c @@ -165,6 +165,8 @@ rtems_debugger_thread_find_index(rtems_id id) static bool snapshot_thread(rtems_tcb* tcb, void* arg) { + (void) arg; + rtems_debugger_threads* threads = rtems_debugger->threads; rtems_id id = tcb->Object.id; char name[RTEMS_DEBUGGER_THREAD_NAME_SIZE]; diff --git a/cpukit/libmisc/monitor/mon-mpci.c b/cpukit/libmisc/monitor/mon-mpci.c index 033a99732a..e7b2ee313f 100644 --- a/cpukit/libmisc/monitor/mon-mpci.c +++ b/cpukit/libmisc/monitor/mon-mpci.c @@ -55,6 +55,8 @@ rtems_monitor_mpci_canonical( const void *config_void ) { + (void) config_void; + const rtems_multiprocessing_table *m; const rtems_mpci_table *mt; @@ -94,6 +96,9 @@ rtems_monitor_mpci_next( rtems_id *next_id ) { + (void) object_info; + (void) canonical_mpci; + int n = rtems_object_id_get_index(*next_id); if (n >= 1) @@ -115,6 +120,8 @@ rtems_monitor_mpci_dump_header( bool verbose ) { + (void) verbose; + fprintf(stdout,"\ max max max default max\n\ node nodes globals proxies timeout pktsize\n"); diff --git a/cpukit/posix/src/lio_listio.c b/cpukit/posix/src/lio_listio.c index b54847b209..0052bf7b26 100644 --- a/cpukit/posix/src/lio_listio.c +++ b/cpukit/posix/src/lio_listio.c @@ -206,6 +206,11 @@ int lio_listio( return 0; #else + (void) mode; + (void) list; + (void) nent; + (void) sig; + rtems_set_errno_and_return_minus_one( ENOSYS ); #endif } diff --git a/cpukit/posix/src/psxtransschedparam.c b/cpukit/posix/src/psxtransschedparam.c index 211adc375b..99057186df 100644 --- a/cpukit/posix/src/psxtransschedparam.c +++ b/cpukit/posix/src/psxtransschedparam.c @@ -71,6 +71,8 @@ int _POSIX_Thread_Translate_sched_param( Thread_Configuration *config ) { + (void) param; + config->cpu_budget_operations = NULL; if ( policy == SCHED_FIFO ) { diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c index a25c9754c3..05ad49a52c 100644 --- a/cpukit/posix/src/pthreadsetschedparam.c +++ b/cpukit/posix/src/pthreadsetschedparam.c @@ -58,6 +58,10 @@ static int _POSIX_Set_sched_param( Thread_queue_Context *queue_context ) { +#if !defined(RTEMS_POSIX_API) + (void) policy; +#endif + const Scheduler_Control *scheduler; int normal_prio; bool valid; diff --git a/cpukit/posix/src/sigprocmask.c b/cpukit/posix/src/sigprocmask.c index 383162ff26..5557756053 100644 --- a/cpukit/posix/src/sigprocmask.c +++ b/cpukit/posix/src/sigprocmask.c @@ -67,6 +67,10 @@ int sigprocmask( return -1; #else + (void) how; + (void) set; + (void) oset; + return -1; #endif } diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c index 625942c28b..6c5ef830fc 100644 --- a/cpukit/rtems/src/msgmp.c +++ b/cpukit/rtems/src/msgmp.c @@ -337,6 +337,8 @@ static void _Message_queue_MP_Send_response_packet ( Thread_Control *the_thread ) { + (void) message_queue_id; + Message_queue_MP_Packet *the_packet; switch ( operation ) { diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c index 6159bad83d..76a4d1ec8f 100644 --- a/cpukit/rtems/src/partmp.c +++ b/cpukit/rtems/src/partmp.c @@ -196,6 +196,8 @@ static void _Partition_MP_Send_response_packet ( Thread_Control *the_thread ) { + (void) partition_id; + Partition_MP_Packet *the_packet; switch ( operation ) { diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c index bf8e43da47..3e80dbd17b 100644 --- a/cpukit/rtems/src/semmp.c +++ b/cpukit/rtems/src/semmp.c @@ -177,6 +177,8 @@ static void _Semaphore_MP_Send_response_packet ( Thread_Control *the_thread ) { + (void) semaphore_id; + Semaphore_MP_Packet *the_packet; switch ( operation ) { diff --git a/cpukit/score/src/exceptionmapping.c b/cpukit/score/src/exceptionmapping.c index 19f04cc31d..2b6f5519cf 100644 --- a/cpukit/score/src/exceptionmapping.c +++ b/cpukit/score/src/exceptionmapping.c @@ -49,6 +49,8 @@ static void _Exception_Raise_handler( ISR_lock_Context *lock_context ) { + (void) action; + _Thread_State_release( executing, lock_context ); raise( raise_signal ); _Thread_State_acquire( executing, lock_context ); @@ -64,6 +66,8 @@ void _Exception_Raise_signal( Internal_errors_t code ) { + (void) always_set_to_false; + CPU_Exception_frame *ef; Per_CPU_Control *cpu_self = _Per_CPU_Get(); bool system_up; diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index fa0d166c74..2c91b959d5 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -346,6 +346,7 @@ void _MPCI_Receive_server( Thread_Entry_numeric_type ignored ) { + (void) ignored; MP_packet_Prefix *the_packet; MPCI_Packet_processor the_function; diff --git a/cpukit/score/src/objectnamespaceremove.c b/cpukit/score/src/objectnamespaceremove.c index 749f983fd4..8f87421819 100644 --- a/cpukit/score/src/objectnamespaceremove.c +++ b/cpukit/score/src/objectnamespaceremove.c @@ -47,6 +47,8 @@ void _Objects_Namespace_remove_string( Objects_Control *the_object ) { + (void) information; + char *name; _Assert( _Objects_Has_string_name( information ) ); diff --git a/cpukit/score/src/scheduleredfsmp.c b/cpukit/score/src/scheduleredfsmp.c index 07b28042d7..cb570f5c31 100644 --- a/cpukit/score/src/scheduleredfsmp.c +++ b/cpukit/score/src/scheduleredfsmp.c @@ -173,6 +173,8 @@ _Scheduler_EDF_SMP_Challenge_highest_ready( RBTree_Control *ready_queue ) { + (void) self; + Scheduler_EDF_SMP_Node *other; other = (Scheduler_EDF_SMP_Node *) _RBTree_Minimum( ready_queue ); @@ -826,6 +828,8 @@ static inline void _Scheduler_EDF_SMP_Do_set_affinity( void *arg ) { + (void) context; + Scheduler_EDF_SMP_Node *node; const uint8_t *rqi; @@ -859,6 +863,8 @@ void _Scheduler_EDF_SMP_Pin( struct Per_CPU_Control *cpu ) { + (void) thread; + Scheduler_EDF_SMP_Node *node; uint8_t rqi; @@ -881,6 +887,8 @@ void _Scheduler_EDF_SMP_Unpin( struct Per_CPU_Control *cpu ) { + (void) thread; + Scheduler_EDF_SMP_Node *node; (void) scheduler; diff --git a/cpukit/score/src/schedulerstrongapa.c b/cpukit/score/src/schedulerstrongapa.c index b38a0f96f0..b3261e0f18 100644 --- a/cpukit/score/src/schedulerstrongapa.c +++ b/cpukit/score/src/schedulerstrongapa.c @@ -345,6 +345,8 @@ static inline void _Scheduler_strong_APA_Insert_ready( Priority_Control insert_priority ) { + (void) insert_priority; + Scheduler_strong_APA_Context *self; Scheduler_strong_APA_Node *node; @@ -545,6 +547,8 @@ static inline void _Scheduler_strong_APA_Extract_from_ready( Scheduler_Node *node_to_extract ) { + (void) context; + Scheduler_strong_APA_Node *node; node = _Scheduler_strong_APA_Node_downcast( node_to_extract ); @@ -861,6 +865,8 @@ static inline void _Scheduler_strong_APA_Do_set_affinity( void *arg ) { + (void) context; + Scheduler_strong_APA_Node *node; node = _Scheduler_strong_APA_Node_downcast( node_base ); diff --git a/cpukit/score/src/smpsynchronize.c b/cpukit/score/src/smpsynchronize.c index 540156af10..9089e837b1 100644 --- a/cpukit/score/src/smpsynchronize.c +++ b/cpukit/score/src/smpsynchronize.c @@ -42,6 +42,8 @@ static void _SMP_Do_nothing_action( void *arg ) { + (void) arg; + /* Do nothing */ } diff --git a/cpukit/score/src/stackallocatorforidle.c b/cpukit/score/src/stackallocatorforidle.c index c8c8c0b766..534c6fd27f 100644 --- a/cpukit/score/src/stackallocatorforidle.c +++ b/cpukit/score/src/stackallocatorforidle.c @@ -46,6 +46,10 @@ void *_Stack_Allocator_allocate_for_idle_static( size_t *storage_size ) { +#if !defined(RTEMS_SMP) + (void) cpu_index; +#endif + size_t size; size = _Stack_Allocator_allocate_for_idle_storage_size; diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index c6d5ebc3de..a472a224e8 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -91,6 +91,8 @@ static void _Thread_Global_construction( Thread_Control *executing ) */ INIT_NAME(); } +#else + (void) executing; #endif } diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c index ef85832962..82823defbf 100644 --- a/cpukit/score/src/threadqops.c +++ b/cpukit/score/src/threadqops.c @@ -444,10 +444,8 @@ static void _Thread_queue_Priority_do_initialize( Thread_queue_Heads *heads ) { -#if !defined(RTEMS_SMP) (void) queue; (void) queue_context; -#endif Scheduler_Node *scheduler_node; Thread_queue_Priority_queue *priority_queue; @@ -492,6 +490,9 @@ static void _Thread_queue_Priority_do_enqueue( Thread_queue_Heads *heads ) { + (void) queue; + (void) queue_context; + #if defined(RTEMS_SMP) Chain_Node *wait_node; const Chain_Node *wait_tail; @@ -523,9 +524,6 @@ static void _Thread_queue_Priority_do_enqueue( wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node ); } while ( wait_node != wait_tail ); #else - (void) queue; - (void) queue_context; - Scheduler_Node *scheduler_node; Thread_queue_Priority_queue *priority_queue; @@ -548,6 +546,8 @@ static void _Thread_queue_Priority_do_extract( Thread_Control *the_thread ) { + (void) queue; + #if defined(RTEMS_SMP) Chain_Node *wait_node; const Chain_Node *wait_tail; @@ -574,8 +574,6 @@ static void _Thread_queue_Priority_do_extract( wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node ); } while ( wait_node != wait_tail ); #else - (void) queue; - Scheduler_Node *scheduler_node; Thread_queue_Priority_queue *priority_queue; @@ -942,7 +940,11 @@ static void _Thread_queue_Priority_inherit_do_enqueue_change( void *arg ) { + (void) priority_group_order; + #if defined(RTEMS_SMP) + (void) priority_actions; + Scheduler_Node *scheduler_node_of_owner; scheduler_node_of_owner = arg; @@ -957,8 +959,6 @@ static void _Thread_queue_Priority_inherit_do_enqueue_change( &scheduler_node_of_owner->Wait.Priority ); #else - (void) priority_group_order; - Thread_queue_Queue *queue; Thread_Control *owner; Scheduler_Node *scheduler_node_of_owner; @@ -1157,6 +1157,8 @@ static void _Thread_queue_Priority_inherit_do_extract( Thread_Control *the_thread ) { + (void) queue; + #if defined(RTEMS_SMP) Chain_Node *wait_node; const Chain_Node *wait_tail; @@ -1205,8 +1207,6 @@ static void _Thread_queue_Priority_inherit_do_extract( _Thread_Priority_perform_actions( owner, queue_context ); } #else - (void) queue; - scheduler_node = _Thread_Scheduler_get_home_node( the_thread ); priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node ); @@ -1280,6 +1280,8 @@ static void _Thread_queue_Priority_inherit_do_surrender_add( void *arg ) { + (void) priority_actions; + Scheduler_Node *scheduler_node; Thread_Control *the_thread; @@ -1319,6 +1321,8 @@ static void _Thread_queue_Priority_inherit_do_surrender_change( ) { #if defined(RTEMS_SMP) + (void) arg; + _Priority_Actions_add( priority_actions, priority_aggregation ); #else _Thread_queue_Context_add_priority_update( @@ -1341,6 +1345,9 @@ static void _Thread_queue_Priority_inherit_do_surrender_change_2( void *arg ) { + (void) priority_actions; + (void) arg; + _Scheduler_Node_set_priority( SCHEDULER_NODE_OF_WAIT_PRIORITY( priority_aggregation ), _Priority_Get_priority( priority_aggregation ), @@ -1357,6 +1364,8 @@ static void _Thread_queue_Priority_inherit_do_surrender( Thread_Control *the_thread ) { + (void) queue; + #if defined(RTEMS_SMP) Chain_Node *fifo_node; const Chain_Node *fifo_head; @@ -1467,8 +1476,6 @@ static void _Thread_queue_Priority_inherit_do_surrender( fifo_node = _Chain_Next( fifo_node ); } #else - (void) queue; - scheduler_node = _Thread_Scheduler_get_home_node( the_thread ); priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node ); scheduler_node_of_owner = priority_queue->scheduler_node; diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 72326682ca..ece634ada1 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -437,6 +437,8 @@ Thread_Cancel_state _Thread_Cancel( Thread_Life_state life_states_to_clear ) { + (void) executing; + ISR_lock_Context lock_context; Thread_Life_state previous;