Fix build warnings about unused variables.