diff --git a/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/cc_ecp_internal.c b/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/cc_ecp_internal.c index 8c05aacbf..e61a53694 100644 --- a/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/cc_ecp_internal.c +++ b/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/cc_ecp_internal.c @@ -72,6 +72,7 @@ #define mbedtls_free free #endif +#if defined(ECP_MONTGOMERY) static int ecc_conv_scalar_to_mpi( uint8_t * scalar, size_t scalarSize, mbedtls_mpi * X) { CCError_t status; @@ -139,7 +140,6 @@ static int ecc_conv_mpi_to_scalar( const mbedtls_mpi * X, uint8_t *scalar, size_ return 0; } -#if defined(ECP_MONTGOMERY) static int ecp_mont_mul( mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P ) { diff --git a/platform/ext/common/boot_hal_bl2.c b/platform/ext/common/boot_hal_bl2.c index 6c36414e6..4463e0aa4 100644 --- a/platform/ext/common/boot_hal_bl2.c +++ b/platform/ext/common/boot_hal_bl2.c @@ -237,6 +237,7 @@ __WEAK void boot_platform_start_next_image(struct boot_arm_vector_table *vt) __WEAK __NO_RETURN void boot_platform_error_state(uint32_t error) { FIH_PANIC; + __builtin_unreachable(); } __WEAK int boot_platform_pre_load(uint32_t image_id) diff --git a/platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_init.c b/platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_init.c index 97f9f22cf..dcaf02452 100644 --- a/platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_init.c +++ b/platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_init.c @@ -91,6 +91,7 @@ static cc3xx_err_t setup_dfa_countermeasures(void) * to be switched off. */ { + (void)lock_dfa_enabled; #endif /* CC3XX_CONFIG_AES_TUNNELLING_ENABLE */ P_CC3XX->ao.host_ao_lock_bits &= ~(0b1U << 7); /* Unset HOST_FORCE_DFA_ENABLE */ } diff --git a/platform/ns/toolchain_ns_GNUARM.cmake b/platform/ns/toolchain_ns_GNUARM.cmake index ae7232152..41782d967 100644 --- a/platform/ns/toolchain_ns_GNUARM.cmake +++ b/platform/ns/toolchain_ns_GNUARM.cmake @@ -181,6 +181,7 @@ add_compile_options( -specs=nosys.specs -Wall -Wno-format + -Wno-array-parameter -Wno-return-type -Wno-unused-but-set-variable -c diff --git a/toolchain_GNUARM.cmake b/toolchain_GNUARM.cmake index badf25aa0..4be140048 100644 --- a/toolchain_GNUARM.cmake +++ b/toolchain_GNUARM.cmake @@ -111,6 +111,7 @@ add_compile_options( -specs=nosys.specs -Wall -Wno-format + -Wno-array-parameter -Wno-return-type -Wno-unused-but-set-variable -c