diff --git a/examples/db-insert.c b/examples/db-insert.c index b548a56ed41..c9432c94ae1 100644 --- a/examples/db-insert.c +++ b/examples/db-insert.c @@ -79,7 +79,7 @@ static void do_prelock(DB* db, DB_TXN* txn) { int r = db->pre_acquire_table_lock(db, txn); assert(r==0); #else - db = db; txn = txn; + (void) db; (void) txn; #endif } }