There's a compiler warning (GCC 4.9) in the xQueueGenericCreate function of 8.2.1:
src/lib/FreeRTOS/queue.c(343) :16: warning: cast increases required alignment of target type [-Wcast-align]
pxNewQueue = ( Queue_t * ) pcAllocatedBuffer; /*lint !e826 MISRA The buffer cannot be too small because it was dimensioned by sizeof( Queue_t ) + xQueueSizeInBytes. */
This can be fixed if pcAllocatedBuffer is of type "Queue_t" instead of "int8_t"!
Line 343:
pxNewQueue = ( Queue_t * ) pcAllocatedBuffer;
gets cleaner and no cast is necessary at all.
In line 357 you need to cast to "int8_t*" which corresponds to line 351 then:
pxNewQueue->pcHead = ( int8_t * ) pcAllocatedBuffer + sizeof( Queue_t );
IMHO this change make the code more cleaner!
Please test and fix.