Heating the warm ionized medium