eldarkg / emdr1986x-std-per-lib

Milandr MCU 1986x Standard Peripherals Library. Mirror:
https://code.launchpad.net/~eldar/emdr1986x-std-per-lib/+git/emdr1986x-std-per-lib
46 stars 29 forks source link

library doesn't compile with -std=c++17 #51

Open sonulen opened 5 years ago

sonulen commented 5 years ago

Build log:

emdr1986x-std-per-lib/CMSIS/CM1/CoreSupport/core_cmFunc.h: In function 'uint32_t __get_PSP()':
emdr1986x-std-per-lib/CMSIS/CM1/CoreSupport/core_cmFunc.h:425:21: error: ISO C++1z does not allow 'register' storage class specifier [-Werror=register]
   register uint32_t result;
                     ^~~~~~
emdr1986x-std-per-lib/CMSIS/CM1/CoreSupport/core_cmFunc.h: In function 'uint32_t __get_MSP()':
emdr1986x-std-per-lib/CMSIS/CM1/CoreSupport/core_cmFunc.h:452:21: error: ISO C++1z does not allow 'register' storage class specifier [-Werror=register]
   register uint32_t result;
                     ^~~~~~
Mob1le commented 6 months ago

In std c++17 The register keyword can no longer be used as a variable specifier. It remains reserved for the future, as it was with auto.