Hi, Mike,
Obviously, the problem is dependent on the compiler rather than the processor, I have tried on CW for mcu ver11 and TWR-56F8400, the result is correct, I have not the warning message either.
How about update your tools to ver11?
BR
XiangJun Rong