harness: fix release build to ignore unused variables