[fdb] fix warning (#258)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech 2023-11-12 13:27:43 +08:00 committed by GitHub
parent 0d1b438947
commit dc6121b448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -151,4 +151,4 @@ const char *_fdb_db_path(fdb_db_t db)
return NULL;
#endif
}
}
}

View File

@ -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];