Skip to content

Commit

Permalink
fix(autoware_osqp_interface): fix clang-tidy errors (#9440)
Browse files Browse the repository at this point in the history
Signed-off-by: veqcc <[email protected]>
  • Loading branch information
veqcc authored Nov 26, 2024
1 parent 9a28f08 commit 96951e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/autoware_osqp_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
${OSQP_INTERFACE_LIB_SRC}
${OSQP_INTERFACE_LIB_HEADERS}
)
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-error=old-style-cast -Wno-error=useless-cast)
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-error=old-style-cast)

target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion common/autoware_osqp_interface/src/osqp_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,6 @@ void OSQPInterface::logUnsolvedStatus(const std::string & prefix_message) const
output_message += "Optimization failed due to " + status_message;

// log with warning
RCLCPP_WARN(rclcpp::get_logger("osqp_interface"), output_message.c_str());
RCLCPP_WARN(rclcpp::get_logger("osqp_interface"), "%s", output_message.c_str());
}
} // namespace autoware::osqp_interface
2 changes: 1 addition & 1 deletion common/autoware_qp_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
${QP_INTERFACE_LIB_SRC}
${QP_INTERFACE_LIB_HEADERS}
)
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-error=old-style-cast -Wno-error=useless-cast)
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-error=old-style-cast)

target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC
Expand Down

0 comments on commit 96951e7

Please sign in to comment.