remove some GCC warnings about unused variables