Make the compiler happy

warning: 16 enumeration values not handled in switch