Skip to content

Commit 2ea01ac

Browse files
committed
Enabled restrict keyword for IAR
1 parent 4b354f8 commit 2ea01ac

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
@@ -51,7 +51,7 @@
5151
"common": [
5252
"--no_wrap_diagnostics", "-e",
5353
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r", "-DMBED_DEBUG",
54-
"-DMBED_TRAP_ERRORS_ENABLED=1"],
54+
"-DMBED_TRAP_ERRORS_ENABLED=1", "--enable_restrict"],
5555
"asm": [],
5656
"c": ["--vla"],
5757
"cxx": ["--guard_calls", "--no_static_destruction"],

tools/profiles/develop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"IAR": {
4747
"common": [
4848
"--no_wrap_diagnostics", "-e",
49-
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh"],
49+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict"],
5050
"asm": [],
5151
"c": ["--vla"],
5252
"cxx": ["--guard_calls", "--no_static_destruction"],

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"IAR": {
4747
"common": [
4848
"--no_wrap_diagnostics", "-e",
49-
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG"],
49+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "-DNDEBUG", "--enable_restrict"],
5050
"asm": [],
5151
"c": ["--vla"],
5252
"cxx": ["--guard_calls", "--no_static_destruction"],

0 commit comments

Comments
 (0)