fix: -Wunused-but-set-variable warnings