Remove unused variable warning in Enum