fix GCC compiler warnings (unused variables)