From dc6121b448bdf78f0d3c6b7ed8f87bc1a6c8ff1a Mon Sep 17 00:00:00 2001 From: _VIFEXTech <1290176185@qq.com> Date: Sun, 12 Nov 2023 13:27:43 +0800 Subject: [PATCH] [fdb] fix warning (#258) Signed-off-by: FASTSHIFT --- src/fdb.c | 2 +- src/fdb_kvdb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fdb.c b/src/fdb.c index 97fc0af..5b066c8 100644 --- a/src/fdb.c +++ b/src/fdb.c @@ -151,4 +151,4 @@ const char *_fdb_db_path(fdb_db_t db) return NULL; #endif } -} \ No newline at end of file +} diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index 132323b..35f90f2 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -914,7 +914,7 @@ static fdb_err_t del_kv(fdb_kvdb_t db, const char *key, fdb_kv_t old_kv, bool co { fdb_err_t result = FDB_NO_ERR; uint32_t dirty_status_addr; - struct fdb_kv kv = { 0 }; + struct fdb_kv kv = { FDB_KV_UNUSED }; #if (KV_STATUS_TABLE_SIZE >= FDB_DIRTY_STATUS_TABLE_SIZE) uint8_t status_table[KV_STATUS_TABLE_SIZE];