Fix compilation warnings with Clang (#721)

Fix compilation warnings with Clang

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
pull/722/head^2
Gaurav-Aggarwal-AWS 2 years ago committed by GitHub
parent a33ba8e646
commit cfd4c73b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3089,6 +3089,7 @@ xtaskswaitingtermination
xtaskswaitingtoreceive xtaskswaitingtoreceive
xtaskswaitingtosend xtaskswaitingtosend
xtasktodelete xtasktodelete
xtasktomodify
xtasktonotify xtasktonotify
xtasktoquery xtasktoquery
xtasktoresume xtasktoresume

@ -472,6 +472,14 @@
#endif #endif
#ifndef configUSE_CORE_AFFINITY
#define configUSE_CORE_AFFINITY 0
#endif /* configUSE_CORE_AFFINITY */
#ifndef configUSE_MINIMAL_IDLE_HOOK
#define configUSE_MINIMAL_IDLE_HOOK 0
#endif /* configUSE_MINIMAL_IDLE_HOOK */
/* The timers module relies on xTaskGetSchedulerState(). */ /* The timers module relies on xTaskGetSchedulerState(). */
#if configUSE_TIMERS == 1 #if configUSE_TIMERS == 1

@ -715,7 +715,7 @@ typedef enum
* a call to xTaskCreateRestricted(). These regions can be redefined using * a call to xTaskCreateRestricted(). These regions can be redefined using
* vTaskAllocateMPURegions(). * vTaskAllocateMPURegions().
* *
* @param xTask The handle of the task being updated. * @param xTaskToModify The handle of the task being updated.
* *
* @param[in] pxRegions A pointer to a MemoryRegion_t structure that contains the * @param[in] pxRegions A pointer to a MemoryRegion_t structure that contains the
* new memory region definitions. * new memory region definitions.
@ -1321,7 +1321,7 @@ BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
UBaseType_t uxCoreAffinityMask ); UBaseType_t uxCoreAffinityMask );
#endif #endif
#if ( configUSE_CORE_AFFINITY == 1 ) #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )
/** /**
* @brief Gets the core affinity mask for a task. * @brief Gets the core affinity mask for a task.

@ -120,8 +120,8 @@
* of their memory address. */ * of their memory address. */
typedef struct A_BLOCK_LINK typedef struct A_BLOCK_LINK
{ {
struct A_BLOCK_LINK * pxNextFreeBlock; /*<< The next free block in the list. */ struct A_BLOCK_LINK * pxNextFreeBlock; /**< The next free block in the list. */
size_t xBlockSize; /*<< The size of the free block. */ size_t xBlockSize; /**< The size of the free block. */
} BlockLink_t; } BlockLink_t;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

@ -584,12 +584,12 @@ static void prvSetupSignalsAndSchedulerPolicy( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
unsigned long ulPortGetRunTime( void ) uint32_t ulPortGetRunTime( void )
{ {
struct tms xTimes; struct tms xTimes;
times( &xTimes ); times( &xTimes );
return ( unsigned long ) xTimes.tms_utime; return ( uint32_t ) xTimes.tms_utime;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

@ -37,6 +37,7 @@
/* *INDENT-ON* */ /* *INDENT-ON* */
#include <limits.h> #include <limits.h>
#include <stdint.h>
/*----------------------------------------------------------- /*-----------------------------------------------------------
* Port specific definitions. * Port specific definitions.
@ -126,7 +127,7 @@ extern void vPortCancelThread( void *pxTaskToDelete );
*/ */
#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) #define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )
extern unsigned long ulPortGetRunTime( void ); extern uint32_t ulPortGetRunTime( void );
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() /* no-op */ #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() /* no-op */
#define portGET_RUN_TIME_COUNTER_VALUE() ulPortGetRunTime() #define portGET_RUN_TIME_COUNTER_VALUE() ulPortGetRunTime()

Loading…
Cancel
Save