return std::shared_ptr<Options>(nullptr);
}
- switch (options->type_) {
+ switch (static_cast<int>(options->type_)) {
case TYPE_UNKNOWN:
std::cerr <<
"Stub or proxy or group (CION only) must be specified." << std::endl;
options->PrintSample();
return std::shared_ptr<Options>(nullptr);
- break;
case TYPE_GROUP:
if (!options->isCion_) {
std::cerr <<
return std::shared_ptr<Options>(nullptr);
}
break;
+ default:
+ break;
}
- switch (options->language_) {
+ switch (static_cast<int>(options->language_)) {
case LANGUAGE_TYPE_UNKNOWN:
std::cerr <<
"Select a language (C, C++, C#, Java(CION only)).." << std::endl;
options->PrintSample();
return std::shared_ptr<Options>(nullptr);
- break;
case LANGUAGE_TYPE_JAVA:
if (!options->isCion_) {
std::cerr <<
options->PrintSample();
return std::shared_ptr<Options>(nullptr);
}
- break;
+ break;
+ default:
+ break;
}
if (!opt[OPT_INPUT]) {