fix: gcc build warning 'unused-parameter' (#422)
AutoTestCI / AutoTest (GRAN=1) (push) Waiting to run
AutoTestCI / AutoTest (GRAN=128) (push) Waiting to run
AutoTestCI / AutoTest (GRAN=256) (push) Waiting to run
AutoTestCI / AutoTest (GRAN=32) (push) Waiting to run
AutoTestCI / AutoTest (GRAN=64) (push) Waiting to run
AutoTestCI / AutoTest (GRAN=8) (push) Waiting to run

This commit is contained in:
woquchonglang
2026-08-15 18:49:19 +08:00
committed by GitHub
parent 8236571f6e
commit e1372d19be
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -897,6 +897,7 @@ static bool sector_statistics_cb(kv_sec_info_t sector, void *arg1, void *arg2)
static bool alloc_kv_cb(kv_sec_info_t sector, void *arg1, void *arg2)
{
(void)arg2;
struct alloc_kv_cb_args *arg = arg1;
/* 1. sector has space
@@ -1111,6 +1112,7 @@ static bool gc_check_cb(kv_sec_info_t sector, void *arg1, void *arg2)
static bool do_gc(kv_sec_info_t sector, void *arg1, void *arg2)
{
(void)arg2;
struct fdb_kv kv;
struct gc_cb_args *gc = (struct gc_cb_args *)arg1;
fdb_kvdb_t db = gc->db;
@@ -1580,6 +1582,7 @@ static bool check_sec_hdr_cb(kv_sec_info_t sector, void *arg1, void *arg2)
static bool check_and_recovery_gc_cb(kv_sec_info_t sector, void *arg1, void *arg2)
{
(void)arg2;
fdb_kvdb_t db = arg1;
if (sector->check_ok && sector->status.dirty == FDB_SECTOR_DIRTY_GC) {
@@ -1594,6 +1597,7 @@ static bool check_and_recovery_gc_cb(kv_sec_info_t sector, void *arg1, void *arg
static bool check_and_recovery_kv_cb(fdb_kv_t kv, void *arg1, void *arg2)
{
(void)arg2;
fdb_kvdb_t db = arg1;
/* recovery the prepare deleted KV */
+2
View File
@@ -865,6 +865,7 @@ fdb_blob_t fdb_tsl_to_blob(fdb_tsl_t tsl, fdb_blob_t blob)
static bool check_sec_hdr_cb(tsdb_sec_info_t sector, void *arg1, void *arg2)
{
(void)arg2;
struct check_sec_hdr_cb_args *arg = arg1;
fdb_tsdb_t db = arg->db;
@@ -892,6 +893,7 @@ static bool check_sec_hdr_cb(tsdb_sec_info_t sector, void *arg1, void *arg2)
}
static bool format_all_cb(tsdb_sec_info_t sector, void *arg1, void *arg2)
{
(void)arg2;
fdb_tsdb_t db = arg1;
format_sector(db, sector->addr);