From 9df557c9511ccf75fa23f27fb4ea9daea0948fae Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Sat, 11 Apr 2020 12:46:46 +0200 Subject: [PATCH] silence MSVC enum warning --- source/greeter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/greeter.cpp b/source/greeter.cpp index 4fb4f89..6aa9679 100644 --- a/source/greeter.cpp +++ b/source/greeter.cpp @@ -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 + "!"; } }