cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade CMSIS to V5.0.4 or later to remove the warning around the use of 'register'

Upgrade CMSIS to V5.0.4 or later to remove the warning around the use of 'register'

0 Kudos

My current release (11.2) of MCUXpresso uses CMSIS V5.0.3. This contains a file that uses the keyword 'register' which as been reserved in C++17 onward, and this produces a warning. Upgrading to the next release of CMSIS or later would resolve this warning.

Warning:

CMSIS/cmsis_gcc.h:249:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
249 | register uint32_t result;

CMSIS/cmsis_gcc.h:303:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
303 | register uint32_t result;

Fix in CMSIS

https://github.com/ARM-software/CMSIS_5/blob/f46ec37262bc4fd82b6c91d24198cc3b4a499fe3/CMSIS/Core/Inc...