diff --git a/libdap-cuttdb/src/cdb_core.c b/libdap-cuttdb/src/cdb_core.c
index 79356a0f2b25659da3e71e12e2e670af99b5d075..ddd52452bd1d8f5eb93029f42e90340c3345f77f 100644
--- a/libdap-cuttdb/src/cdb_core.c
+++ b/libdap-cuttdb/src/cdb_core.c
@@ -41,6 +41,7 @@ static void _cdb_pagewarmup(CDB *db, bool loadbf);
 /* it isn't necessary to rehash bid in hash table cache */
 static uint32_t _pagehash(const void *key, int len)
 {
+    (void) len;
     return *(uint32_t*)key;
 }