diff --git a/docopt_value.h b/docopt_value.h index e1c87e6..e544ab8 100644 --- a/docopt_value.h +++ b/docopt_value.h @@ -77,7 +77,9 @@ namespace docopt { std::string strValue; std::vector strList; }; - + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" static const char* kindAsString(Kind kind) { switch (kind) { case Kind::Empty: return "empty"; @@ -88,6 +90,7 @@ namespace docopt { } return "unknown"; } +#pragma GCC diagnostic pop void throwIfNotKind(Kind expected) const { if (kind_ == expected)