Skip to content

Commit

Permalink
Fix warning: control reaches end of non-void function
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jun 10, 2021
1 parent f95fcf1 commit 5dacc85
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5dacc85

Please sign in to comment.