Skip to content

Commit 8fe4c20

Browse files
kjbraceyadbridge
authored andcommitted
ARMC6: Suppress "register deprecated" warning
Lots of target code, STM in particular, uses the `register` keyword, so it'll take a little while to clean up. In the interim, some builds are producing a lot of warnings. Suppress the warning for now, as `register` remains legal C++14 and C11, despite C++14 deprecating it. C++17 removes `register`, so code will need to be cleaned before any further C++ version update.
1 parent 6084069 commit 8fe4c20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/profiles/debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ARMC6": {
1919
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1",
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
21-
"-Wno-reserved-user-defined-literal",
21+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2222
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2323
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2424
"-fshort-enums", "-fshort-wchar", "-DMBED_DEBUG",

tools/profiles/develop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-Wno-reserved-user-defined-literal",
20+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2222
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2323
"-fshort-enums", "-fshort-wchar", "-DMBED_TRAP_ERRORS_ENABLED=1"],

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-Wno-reserved-user-defined-literal",
20+
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2222
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
2323
"-fshort-enums", "-fshort-wchar", "-DNDEBUG"],

0 commit comments

Comments
 (0)