Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#5992 from jwnimmer-tri/build-unuse…
Browse files Browse the repository at this point in the history
…d-parameter-framework

Fix Wunused-parameter in framework
  • Loading branch information
sherm1 authored May 1, 2017
2 parents d997355 + f814eaf commit 3d5820e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion drake/systems/framework/leaf_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ class LeafSystem : public System<T> {
}

private:
void DoGetPerStepEvents(const Context<T>& context,
void DoGetPerStepEvents(
const Context<T>&,
std::vector<DiscreteEvent<T>>* events) const override {
*events = per_step_events_;
}
Expand Down
5 changes: 3 additions & 2 deletions drake/systems/framework/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -1250,9 +1250,10 @@ class System {
/// not null, and it can be changed freely by the overriding implementation.
///
/// The default implementation returns without changing @p events.
virtual void DoGetPerStepEvents(const Context<T>& context,
virtual void DoGetPerStepEvents(
const Context<T>& context,
std::vector<DiscreteEvent<T>>* events) const {
unused(context);
unused(context, events);
}

/// Override this method for physical systems to calculate the potential
Expand Down

0 comments on commit 3d5820e

Please sign in to comment.