diff --git a/system/autoware_default_adapi/src/planning.cpp b/system/autoware_default_adapi/src/planning.cpp index 530ec1028bf9a..0fc92bd8dbb58 100644 --- a/system/autoware_default_adapi/src/planning.cpp +++ b/system/autoware_default_adapi/src/planning.cpp @@ -78,7 +78,7 @@ std::vector::SharedPtr> init_factors( } template -std::vector convert(const std::vector & factors) +std::vector convert([[maybe_unused]] const std::vector & factors) { static_assert(sizeof(T) == 0, "Only specializations of convert can be used."); throw std::logic_error("Only specializations of convert can be used.");