FreeRTOS / FreeRTOS-Kernel-Partner-Supported-Ports

Other
9 stars 14 forks source link

AVR_AVRDx portmacro.h UBaseType_t gives compile warning #4

Closed danak6jq closed 2 years ago

danak6jq commented 2 years ago

portmacro.h defines:

typedef unsigned char UBaseType_t; which gives this compile warning:

right shift count >= width of type [-Wshift-count-overflow] RTOSDemo FreeRTOS\FreeRTOS\Demo\Common\Minimal\TaskNotify.c 719

return( ( uxNextRand >> 16 ) & ( ( size_t ) 0x7fff ) );

RichardBarry commented 2 years ago

Thanks for the information - however this file is just a demo and test file - not part of the kernel port this ticket is open under.

danak6jq commented 2 years ago

Understood - I just found the relevant source and clicked "issues" and this is where I ended-up.