Skip to content

Commit

Permalink
Merge pull request #135 from RICCIARDI-Adrien/fix_various_warnings
Browse files Browse the repository at this point in the history
Fix various warnings
  • Loading branch information
jlbirccyn authored Oct 13, 2023
2 parents 4496cbf + 15c9fc6 commit fad6cbe
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions machines/cortex-a/tpl_machine_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ FUNC(uint8, OS_CODE) tpl_check_stack_footprint (
CONST(tpl_proc_id, OS_APPL_DATA) proc_id)
{
uint8 tmp;

(void) proc_id;

/*to do*/
tmp=0;
return tmp;
Expand Down
2 changes: 2 additions & 0 deletions machines/posix/tpl_machine_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ void tpl_osek_func_stub( tpl_proc_id task_id )

void quit(int n)
{
(void) n;

ShutdownOS(E_OK);
}

Expand Down
2 changes: 2 additions & 0 deletions machines/posix/tpl_posix_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ FUNC(void, OS_CODE) tpl_create_context_boot(void)
#include "tpl_memmap.h"
FUNC(void, OS_CODE) tpl_create_context_trampoline(int sigid)
{
(void) sigid;

/* 5 : new context created. We go back to tpl_init_context */
if( 0==setjmp(tpl_stat_proc_table[new_proc_id]->context->initial) )
{
Expand Down
2 changes: 1 addition & 1 deletion os/tpl_os_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
ShutdownHook(error); \
RESET_RUNNING_TRUSTED
#else
# define CALL_SHUTDOWN_HOOK(error)
# define CALL_SHUTDOWN_HOOK(error) { (void) error; }
#endif

/**
Expand Down
7 changes: 1 addition & 6 deletions os/tpl_os_interrupt_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ FUNC(void, OS_CODE) tpl_suspend_all_interrupts_service(void)
FUNC(void, OS_CODE) tpl_resume_all_interrupts_service(void)
{
GET_CURRENT_CORE_ID(core_id)
#if defined(__unix__) || defined(__APPLE__)
assert( GET_LOCK_CNT_FOR_CORE(tpl_locking_depth,core_id) >= 0 );
#endif

if( GET_LOCK_CNT_FOR_CORE(tpl_cpt_user_task_lock_All,core_id) != 0 )
{
Expand Down Expand Up @@ -202,9 +199,6 @@ FUNC(void, OS_CODE) tpl_suspend_os_interrupts_service(void)
FUNC(void, OS_CODE) tpl_resume_os_interrupts_service(void)
{
GET_CURRENT_CORE_ID(core_id)
#if defined(__unix__) || defined(__APPLE__)
assert(GET_LOCK_CNT_FOR_CORE(tpl_locking_depth,core_id) >= 0);
#endif

if (GET_LOCK_CNT_FOR_CORE(tpl_cpt_user_task_lock_OS,core_id) != 0)
{
Expand Down Expand Up @@ -266,6 +260,7 @@ FUNC(tpl_status, OS_CODE) tpl_terminate_isr2_service(void)
FUNC(void, OS_CODE) tpl_null_it(P2CONST(void, OS_APPL_DATA, AUTOMATIC) foo)
{
/* empty function */
(void) foo;
}

#define OS_STOP_SEC_CODE
Expand Down
3 changes: 3 additions & 0 deletions os/tpl_os_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,9 @@ tpl_set_event(CONST(tpl_task_id, AUTOMATIC) task_id,
{
result = E_OS_STATE;
}
#else
(void) task_id;
(void) incoming_event;
#endif

return result;
Expand Down

0 comments on commit fad6cbe

Please sign in to comment.