From 50d1c5b253af70a30847aa55a65c7650d5cf4e90 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sun, 7 Jan 2024 22:31:18 -0800 Subject: [PATCH] Fix unused parameter warning (#75) --- .../DifferentialCentripetalAccelerationConstraint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.h b/include/trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.h index c8903f7c..cf5f33aa 100644 --- a/include/trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.h +++ b/include/trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.h @@ -42,9 +42,9 @@ struct fmt::formatter { * @param constraint DifferentialCentripetalAccelerationConstraint instance. * @param ctx Format string context. */ - auto format( - const trajopt::DifferentialCentripetalAccelerationConstraint& constraint, - fmt::format_context& ctx) const { + auto format([[maybe_unused]] const trajopt:: + DifferentialCentripetalAccelerationConstraint& constraint, + fmt::format_context& ctx) const { return fmt::format_to(ctx.out(), "diff centrip acceleration bound"); } };