Remove warnings due to enumeration mismatch.