mirror of https://github.com/ARMmbed/mbed-os.git
Fix build error on IAR
IAR fails to build when a variable is initialized with empty curly braces. Added `{ { 0 } }` to fix that.pull/7099/head
parent
c1b6fdc5af
commit
a2531b5674
|
@ -25,7 +25,7 @@
|
|||
#include "mbedtls/platform.h"
|
||||
|
||||
extern mbedtls_platform_context ctx;
|
||||
static CRYS_RND_WorkBuff_t rndWorkBuff;
|
||||
static CRYS_RND_WorkBuff_t rndWorkBuff = { { 0 } };
|
||||
|
||||
/* Implementation that should never be optimized out by the compiler */
|
||||
static void mbedtls_zeroize( void *v, size_t n ) {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
|
||||
#include "mbed_critical.h"
|
||||
|
||||
mbedtls_platform_context ctx = { };
|
||||
mbedtls_platform_context ctx = { { 0 } };
|
||||
|
||||
int mbedtls_platform_setup( mbedtls_platform_context *unused_ctx )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue