Fix warning on varialbe unused in opt builds.