Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docopt_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ namespace docopt {
std::string strValue;
std::vector<std::string> strList;
};


#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
static const char* kindAsString(Kind kind) {
switch (kind) {
case Kind::Empty: return "empty";
Expand All @@ -88,6 +90,7 @@ namespace docopt {
}
return "unknown";
}
#pragma GCC diagnostic pop

void throwIfNotKind(Kind expected) const {
if (kind_ == expected)
Expand Down