Fix clang warning about enumeration types