Skip to content

Commit

Permalink
add used attribute to two functions (#32545)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored Mar 12, 2024
1 parent 9a947d8 commit ad14dbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/platform/silabs/SoftwareFaultReports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void OnSoftwareFaultEventHandler(const char * faultRecordString)
/**
* Log register contents to UART when a hard fault occurs.
*/
extern "C" void debugHardfault(uint32_t * sp)
extern "C" __attribute__((used)) void debugHardfault(uint32_t * sp)
{
#if SILABS_LOG_ENABLED
uint32_t cfsr = SCB->CFSR;
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/heap_4_silabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ void * __wrap_realloc(void * ptr, size_t new_size)
return pvPortRealloc(ptr, new_size);
}

void * __wrap_calloc(size_t num, size_t size)
__attribute__((used)) void * __wrap_calloc(size_t num, size_t size)
{
return pvPortCalloc(num, size);
}
Expand Down

0 comments on commit ad14dbc

Please sign in to comment.