Fix compiler warnings about unused variables.