Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Fix unused parameter warnings (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jun 22, 2024
1 parent b6073a4 commit d845cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/modules/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ macro(compiler_flags target)
if(NOT MSVC)
target_compile_options(
${target}
PRIVATE -Wall -pedantic -Wextra -Werror -Wno-unused-parameter
PRIVATE -Wall -pedantic -Wextra -Werror
)
else()
# Suppress the following warnings:
Expand Down
6 changes: 4 additions & 2 deletions src/optimization/HolonomicTrajoptUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ inline void ApplyHolonomicConstraint(
sleipnir::OptimizationProblem& problem, const sleipnir::Variable& x,
const sleipnir::Variable& y, const sleipnir::Variable& theta,
const sleipnir::Variable& vx, const sleipnir::Variable& vy,
const sleipnir::Variable& omega, const sleipnir::Variable& ax,
const sleipnir::Variable& ay, const sleipnir::Variable& alpha,
const sleipnir::Variable& omega,
[[maybe_unused]] const sleipnir::Variable& ax,
[[maybe_unused]] const sleipnir::Variable& ay,
[[maybe_unused]] const sleipnir::Variable& alpha,
const HolonomicConstraint& constraint) {
if (std::holds_alternative<HolonomicVelocityConstraint>(constraint)) {
const auto& velocityHolonomicConstraint =
Expand Down

0 comments on commit d845cf5

Please sign in to comment.