Skip to content

Commit f11d0f3

Browse files
author
Cruz Monrreal
authored
Merge pull request #7261 from kjbracey-arm/iar-jump-warning
IAR: Suppress C "bypasses initialization" warning
2 parents 1e37f9c + 81ed801 commit f11d0f3

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
@@ -53,7 +53,7 @@
5353
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r", "-DMBED_DEBUG",
5454
"-DMBED_TRAP_ERRORS_ENABLED=1", "--enable_restrict", "-D_RTE_"],
5555
"asm": [],
56-
"c": ["--vla"],
56+
"c": ["--vla", "--diag_suppress=Pe546"],
5757
"cxx": ["--guard_calls", "--no_static_destruction"],
5858
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
5959
}

tools/profiles/develop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"--no_wrap_diagnostics", "-e",
4949
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict", "-D_RTE_"],
5050
"asm": [],
51-
"c": ["--vla"],
51+
"c": ["--vla", "--diag_suppress=Pe546"],
5252
"cxx": ["--guard_calls", "--no_static_destruction"],
5353
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
5454
}

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"--no_wrap_diagnostics", "-e",
5050
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG", "--enable_restrict", "-D_RTE_"],
5151
"asm": [],
52-
"c": ["--vla"],
52+
"c": ["--vla", "--diag_suppress=Pe546"],
5353
"cxx": ["--guard_calls", "--no_static_destruction"],
5454
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
5555
}

0 commit comments

Comments
 (0)