Skip to content

Commit 729cbe7

Browse files
committed
Move return so that switch has default case
When a project using docopt.cpp is built with `-Werror=switch-default` option, there's an error ``` error: switch missing default case [-Werror=switch-default] ``` which this fixes. Signed-off-by: Eero Aaltonen <[email protected]>
1 parent 400e6dd commit 729cbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docopt_value.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ namespace docopt {
8585
case Kind::Long: return "long";
8686
case Kind::String: return "string";
8787
case Kind::StringList: return "string-list";
88+
default: return "unknown";
8889
}
89-
return "unknown";
9090
}
9191

9292
void throwIfNotKind(Kind expected) const {

0 commit comments

Comments
 (0)