mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Warning fixes. (#356)
* Use cast to fix warnings. * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h.
This commit is contained in:
parent
1d86b973aa
commit
b5a9229563
20 changed files with 6 additions and 61 deletions
|
@ -144,8 +144,6 @@ extern volatile unsigned int ulCriticalNesting;
|
|||
#if defined( __MW__ )
|
||||
extern void task_end_hook( void * pxTCB );
|
||||
#define portCLEAN_UP_TCB( pxTCB ) task_end_hook( ( void * ) pxTCB )
|
||||
#else
|
||||
#define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
|
||||
#endif
|
||||
|
||||
void vPortYield( void );
|
||||
|
|
2
portable/ThirdParty/GCC/ARC_v1/portmacro.h
vendored
2
portable/ThirdParty/GCC/ARC_v1/portmacro.h
vendored
|
@ -138,8 +138,6 @@
|
|||
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() do {} while( 0 ) /* we use the timer */
|
||||
#define portALT_GET_RUN_TIME_COUNTER_VALUE( dest ) ( dest = xTickCount )
|
||||
|
||||
#define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
|
||||
|
||||
void vPortYield( void );
|
||||
void vPortYieldFromIsr( void );
|
||||
|
||||
|
|
3
portable/ThirdParty/XCC/Xtensa/portmacro.h
vendored
3
portable/ThirdParty/XCC/Xtensa/portmacro.h
vendored
|
@ -182,9 +182,6 @@ void exit(int);
|
|||
|
||||
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_XCLIB)
|
||||
extern void vPortClibInit(void);
|
||||
|
||||
// No cleanup necessary at this time.
|
||||
#define portCLEAN_UP_TCB(pxTCB)
|
||||
#endif // XCLIB support
|
||||
|
||||
#if (XT_USE_THREAD_SAFE_CLIB > 0u) && (XSHAL_CLIB == XTHAL_CLIB_NEWLIB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue