Skip to content

Commit 5dacc85

Browse files
committed
Fix warning: control reaches end of non-void function
1 parent f95fcf1 commit 5dacc85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

visualization/motion_planning_tasks/properties/property_from_yaml.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ rviz::Property* Parser::process(const yaml_event_t& event, const QString& name,
151151
case YAML_SCALAR_EVENT:
152152
return createScalar(name, description, byteArray(event), old);
153153
default:
154-
break;
154+
throw std::runtime_error("Unhandled YAML event");
155155
}
156-
assert(false); // should not be reached
157156
}
158157

159158
// Try to set numeric or arbitrary scalar value from YAML node. Needs to match old's type.

0 commit comments

Comments
 (0)