Fix the -Wswitch-enum warning in fmt
Summary:
Backport a fix for the `-Wswitch-enum` warning in fmt:
```
xplat/third-party/fmt/fmt-5.2.0/include/fmt/format.h:1446:13: error: 12 enumeration values not explicitly handled in switch: 'int_type', 'uint_type', 'long_long_type'... [-Werror,-Wswitch-enum]
switch (args.args_[i].type_) {
^
```
@@ -1434,14 +1434,11 @@ void arg_map<Context>::init(const basic_format_args<Context> &args) {
if (use_values) {
for (unsigned i = 0;/*nothing*/; ++i) {
internal::type arg_type = args.type(i);
- switch (arg_type) {
- case internal::none_type:
+ if (arg_type == internal::none_type) {
return;
- case internal::named_arg_type:
+ }
+ if (arg_type == internal::named_arg_type) {
push_back(args.values_[i]);
- break;
- default:
- break; // Do nothing.
}
}
}
