Skip to content

Commit

Permalink
Fix build error on unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Jun 13, 2024
1 parent f73ff04 commit 1a5b4aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions adelie/src/constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ void constraint_base(py::module_& m, const char* name)
{
using trampoline_t = PyConstraintBase<T>;
using internal_t = ad::constraint::ConstraintBase<T>;
using value_t = typename internal_t::value_t;
using vec_value_t = typename internal_t::vec_value_t;
py::class_<internal_t, trampoline_t>(m, name, R"delimiter(
Base constraint class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ConstraintBase
) =0;

virtual void project(
Eigen::Ref<vec_value_t> x
Eigen::Ref<vec_value_t>
)
{}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class ConstraintLowerUpper: public ConstraintBase<ValueType>
}

void gradient(
const Eigen::Ref<const vec_value_t>& x,
const Eigen::Ref<const vec_value_t>&,
const Eigen::Ref<const vec_value_t>& mu,
Eigen::Ref<vec_value_t> out
) override
Expand Down

0 comments on commit 1a5b4aa

Please sign in to comment.