Fix compiler warning in release mode