From 5bd164d6620d54d211d9bd29a9cae5e485600a01 Mon Sep 17 00:00:00 2001 From: Simon Hughes Date: Fri, 17 Jun 2016 15:28:11 +0100 Subject: [PATCH] cfstore sram mode fix for flash test --- features/storage/TESTS/cfstore/flash/flash.cpp | 2 +- features/storage/cfstore/source/cfstore_test.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/features/storage/TESTS/cfstore/flash/flash.cpp b/features/storage/TESTS/cfstore/flash/flash.cpp index 28a2837656..790cfa8408 100644 --- a/features/storage/TESTS/cfstore/flash/flash.cpp +++ b/features/storage/TESTS/cfstore/flash/flash.cpp @@ -140,8 +140,8 @@ UVISOR_BOX_CONFIG(cfstore_flash_box1, UVISOR_BOX_STACK_SIZE); * Globals */ -#ifdef CFSTORE_CONFIG_BACKEND_FLASH_ENABLED char cfstore_flash_utest_msg_g[CFSTORE_FLASH_UTEST_MSG_BUF_SIZE]; +#ifdef CFSTORE_CONFIG_BACKEND_FLASH_ENABLED uint16_t cfstore_flash_mtd_async_ops_g = 0; extern ARM_DRIVER_STORAGE ARM_Driver_Storage_(0); diff --git a/features/storage/cfstore/source/cfstore_test.c b/features/storage/cfstore/source/cfstore_test.c index 50897ce6f1..b583c77ef3 100644 --- a/features/storage/cfstore/source/cfstore_test.c +++ b/features/storage/cfstore/source/cfstore_test.c @@ -298,6 +298,7 @@ int32_t cfstore_test_create_table(const cfstore_kv_data_t* table) cfstore_kv_data_t* node = NULL; ARM_CFSTORE_KEYDESC kdesc; + (void) node; /* suppresses warning when building release */ CFSTORE_FENTRYLOG("%s:entered.\r\n", __func__); memset(&kdesc, 0, sizeof(kdesc)); kdesc.drl = ARM_RETENTION_WHILE_DEVICE_ACTIVE;