Build: Minor IAR warnings elimination and fix for 8f17a711
Update the IAR CMSE_FLAG handling for 8f17a711
Fixed a few warnings about unused variables with IAR
Disabled some harmless warnings for IAR
Signed-off-by: TTornblom <thomas.tornblom@iar.com>
Change-Id: I7197ae009e3e85bcb8d8b21b7528108d966ee330
diff --git a/platform/ext/common/uart_stdout.c b/platform/ext/common/uart_stdout.c
index 075a2b7..811dfe4 100644
--- a/platform/ext/common/uart_stdout.c
+++ b/platform/ext/common/uart_stdout.c
@@ -96,6 +96,7 @@
ret = STDIO_DRIVER.Control(ARM_USART_MODE_ASYNCHRONOUS,
DEFAULT_UART_BAUDRATE);
ASSERT_HIGH(ret);
+ (void)ret;
(void)STDIO_DRIVER.Control(ARM_USART_CONTROL_TX, 1);
}
@@ -108,4 +109,5 @@
ret = STDIO_DRIVER.Uninitialize();
ASSERT_HIGH(ret);
+ (void)ret;
}
diff --git a/platform/ext/target/cypress/psoc64/smpu_config.h b/platform/ext/target/cypress/psoc64/smpu_config.h
index 6a225c4..119afb7 100644
--- a/platform/ext/target/cypress/psoc64/smpu_config.h
+++ b/platform/ext/target/cypress/psoc64/smpu_config.h
@@ -216,7 +216,7 @@
#define SMPU10_REGIONSIZE PROT_SIZE_64KB_BIT_SHIFT
#define SMPU10_SLAVE_CONFIG {\
.address = (void *)SMPU10_BASE, \
- .regionSize = SMPU10_REGIONSIZE, \
+ .regionSize = (cy_en_prot_size_t) SMPU10_REGIONSIZE, \
.subregions = ALL_ENABLED, \
.userPermission = CY_PROT_PERM_DISABLED, \
.privPermission = CY_PROT_PERM_RW, \