diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json index 053ba43271..1800616967 100644 --- a/tools/profiles/debug.json +++ b/tools/profiles/debug.json @@ -53,7 +53,7 @@ "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r", "-DMBED_DEBUG", "-DMBED_TRAP_ERRORS_ENABLED=1", "--enable_restrict", "-D_RTE_"], "asm": [], - "c": ["--vla"], + "c": ["--vla", "--diag_suppress=Pe546"], "cxx": ["--guard_calls", "--no_static_destruction"], "ld": ["--skip_dynamic_initialization", "--threaded_lib"] } diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index 19f7a5eaab..ed32506018 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -48,7 +48,7 @@ "--no_wrap_diagnostics", "-e", "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict", "-D_RTE_"], "asm": [], - "c": ["--vla"], + "c": ["--vla", "--diag_suppress=Pe546"], "cxx": ["--guard_calls", "--no_static_destruction"], "ld": ["--skip_dynamic_initialization", "--threaded_lib"] } diff --git a/tools/profiles/release.json b/tools/profiles/release.json index f224de0c12..4fe6f8cd6b 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -49,7 +49,7 @@ "--no_wrap_diagnostics", "-e", "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG", "--enable_restrict", "-D_RTE_"], "asm": [], - "c": ["--vla"], + "c": ["--vla", "--diag_suppress=Pe546"], "cxx": ["--guard_calls", "--no_static_destruction"], "ld": ["--skip_dynamic_initialization", "--threaded_lib"] }