silence MSVC enum warning

This commit is contained in:
Lars Melchior 2020-04-11 12:46:46 +02:00
parent 9a5f50f95c
commit 9df557c951

View file

@ -13,6 +13,10 @@ std::string Greeter::greet(LanguageCode lang) const {
case LanguageCode::ES:
return "¡Hola " + name + "!";
case LanguageCode::FR:
#if defined(_WIN32) || defined(WIN32)
// this silences a warning as MSVC does not seem to understand strongly-typed enums
default:
#endif
return "Bonjour " + name + "!";
}
}