Oops, that would be an issue. Are you suggesting just dropping the parentheses, like so: ( uint8_t * ) pxAllocatedMemory + sizeof( StreamBuffer_t ) I suppose you could also use: ( uint8_t * ) ( pxAllocatedMemory + 1 ) I agree that the first way makes the intent clearer.
I had the same compiler warning. Richard is correct that it can be fixed by using a StreamBuffer_t pointer. I've attached an updated version of xStreamBufferGenericCreate that does not produce the warning.