Compiler warnings

rtel wrote on Friday, August 01, 2008:

> The target variables of the assignments on these lines are
> volatile xListItem *, but the applied casting is only
> (xListItem *) This should be (volatile xListItem *)

In which case other compilers used to compile FreeRTOS.org will complain about “meaningless qualifier on cast”.  Can’t win there I’m afraid.

> I also get
> C:\dev\FreeRTOS\Source\tasks.c:461:Warning [2066] type
> qualifier mismatch in assignment\ Which also need a volatile prefix:
> pxTopOfStack is defined (volatile portSTACK_TYPE *), but a
> (portSTACK_TYPE *) is assigned to it. That should be
> (volatile portSTACK_TYPE *)

Likewise.

>
> This should be the same on all platforms

…but it isn’t, unfortunately.

The C18 compiler is not exactly standard in any case.

Regards.