Fix warning: control reaches end of non-void function

This commit is contained in:
Robert Haschke 2021-06-10 00:40:47 +02:00
parent f95fcf17b4
commit 5dacc85ff9

View File

@ -151,9 +151,8 @@ rviz::Property* Parser::process(const yaml_event_t& event, const QString& name,
case YAML_SCALAR_EVENT:
return createScalar(name, description, byteArray(event), old);
default:
break;
throw std::runtime_error("Unhandled YAML event");
}
assert(false); // should not be reached
}
// Try to set numeric or arbitrary scalar value from YAML node. Needs to match old's type.