Hi Igor,
This particular warning is a HALCoGen bug that was exposed by upgrading the ARM compiler from v4.9.5 to v5.1.1. The file pinmux.c has the macro PINMUX_SET defined incorrectly.
#define PINMUX_SET(REG, BALLID, MUX) \
pinMuxReg->PINMMR##REG## = (pinMuxReg->PINMMR##REG##& PINMUX_BALL_##BALLID##_MASK) | (PINMUX_BALL_##BALLID##_##MUX)
Changing REG## to REG in two places got rid of the error and generated the same code.
This should probably be passed along to the HALCoGen team.
Thanks, Charlie Johnston