From 98f6364e87e5761b0149d1e9e90cc0c3f0766fe9 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Mon, 7 Jan 2019 16:50:06 +0200 Subject: [PATCH] Adding return MBED_ERROR_UNSUPPORTED in _storage_config_default if no component is defined. --- features/storage/kvstore/conf/kv_config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/storage/kvstore/conf/kv_config.cpp b/features/storage/kvstore/conf/kv_config.cpp index 51513e014e..3ff9762d5a 100644 --- a/features/storage/kvstore/conf/kv_config.cpp +++ b/features/storage/kvstore/conf/kv_config.cpp @@ -1057,6 +1057,8 @@ int _storage_config_default() return _storage_config_FILESYSTEM(); #elif COMPONENT_FLASHIAP return _storage_config_TDB_INTERNAL(); +#else + return MBED_ERROR_UNSUPPORTED; #endif }