mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 04:33:53 +00:00
Resolve two switch related warnings on GCC 8 (#255)
* Add default case to resolve -Werror=switch-default. * Add missing enumeration values to resolve -Werror=switch-enum. * Fix coverage
This commit is contained in:
parent
80420d62e2
commit
6be9f0c659
@ -2234,6 +2234,12 @@ class App {
|
||||
if(retval && positionals_at_end_) {
|
||||
positional_only = true;
|
||||
}
|
||||
break;
|
||||
|
||||
// LCOV_EXCL_START
|
||||
default:
|
||||
HorribleError("unrecognized classifier (you should not see this!)");
|
||||
// LCOV_EXCL_END
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
@ -2396,6 +2402,9 @@ class App {
|
||||
if(!detail::split_windows_style(current, arg_name, value))
|
||||
throw HorribleError("windows option parsed but missing! You should not see this");
|
||||
break;
|
||||
case detail::Classifier::SUBCOMMAND:
|
||||
case detail::Classifier::POSITIONAL_MARK:
|
||||
case detail::Classifier::NONE:
|
||||
default:
|
||||
throw HorribleError("parsing got called with invalid option! You should not see this");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user