From 8fe4c20c35bd90cf49c17d9f9bbe744d9681475f Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Mon, 3 Jun 2019 12:19:58 +0300 Subject: [PATCH] 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. --- tools/profiles/debug.json | 2 +- tools/profiles/develop.json | 2 +- tools/profiles/release.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json index 1aa2ee534c..4f8882b8ea 100644 --- a/tools/profiles/debug.json +++ b/tools/profiles/debug.json @@ -18,7 +18,7 @@ "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", - "-Wno-reserved-user-defined-literal", + "-Wno-reserved-user-defined-literal", "-Wno-deprecated-register", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", "-fshort-enums", "-fshort-wchar", "-DMBED_DEBUG", diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index 2ccfa5b584..c0b9f3802b 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -17,7 +17,7 @@ "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", - "-Wno-reserved-user-defined-literal", + "-Wno-reserved-user-defined-literal", "-Wno-deprecated-register", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", "-fshort-enums", "-fshort-wchar", "-DMBED_TRAP_ERRORS_ENABLED=1"], diff --git a/tools/profiles/release.json b/tools/profiles/release.json index e0c4a67a23..99bd09fdb3 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -17,7 +17,7 @@ "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz", "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions", - "-Wno-reserved-user-defined-literal", + "-Wno-reserved-user-defined-literal", "-Wno-deprecated-register", "-DMULADDC_CANNOT_USE_R7", "-fdata-sections", "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=", "-fshort-enums", "-fshort-wchar", "-DNDEBUG"],