rtel wrote on Wednesday, December 21, 2005:
As said previously, the warnings are benign. Modifying the source code will cause warning to be produced by other compilers. This is the only port for which warnings are produced currently. You may be better off disabling the warnings.
> Warning[Pe191]: type qualifier is meaningless on cast type
> G:\freertos\Demo\Common\Minimal\PollQ.c 100
This is not part of the source, but the demo. If you want to fix this by modifying the code then remove the qualifier in the cast prior to the QConsNB parameter (line 100 of PollQ). Likewise for the other type qualifier is meaningless warnings. The line numbers are given.
> Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined
> in this statement G:\freertos\Source\tasks.c 1260
These warning are in the listGET_OWNER_OF_NEXT_ENTRY() macro. You can remove the volatile cast from within the macro if you wish.
> Warning[w6]: Type conflict for external/entry "uxQueueMessagesWaiting", in module
> PollQ against external/entry in
These warnings are generated because of a deliberate data hiding policy. You would have to change the location the queue and tcb data structures are defined to remove the warning. This is not a good idea as you would also remove the data hiding which is not desirable. In this case I really recommend just disabling the warning.