mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-08 20:55:14 -05:00
Fix warnings after moving callback prototypes (#208)
* Recently the prototypes for the application hook functions were moved out of the kernel .c files and into the .h files. That changes results in compile time warnings for projects that provide hook functions with a slightly different prototype - in particular where signed char * is used in place of just char * as an older FreeRTOS coding convention required chars to be explicitly qualified as signed or unsigned. This checkin fixes the warnings by ensuring the signature of implemented hook functions matches the signature of the prototypes.
This commit is contained in:
parent
4a026fd703
commit
a9680a54cf
23 changed files with 122 additions and 113 deletions
|
|
@ -653,8 +653,8 @@ static void prvRegTestTask2( void *pvParameters )
|
|||
/* This hook function will get called if there is a suspected stack overflow.
|
||||
An overflow can cause the task name to be corrupted, in which case the task
|
||||
handle needs to be used to determine the offending task. */
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, signed char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, signed char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName )
|
||||
{
|
||||
/* To prevent the optimiser removing the variables. */
|
||||
volatile TaskHandle_t xTaskIn = xTask;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue