Skip to content

Commit

Permalink
[#48590] src: sample_publisher_node.cpp: Fix 'unused parameter' warning
Browse files Browse the repository at this point in the history
Fixes '.clang-format' enumerator
  • Loading branch information
ivysochyn committed Aug 31, 2023
1 parent 6a031f4 commit 44f13f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: True
AllowShortFunctionsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: true
Expand Down
2 changes: 1 addition & 1 deletion src/samples/sample_publisher_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SamplePublisherComponent
std::shared_ptr<RosCounterServerData> ros_server_data_ptr = std::make_shared<RosCounterServerData>(
gui_node_ptr,
"/counter",
[](std_srvs::srv::Trigger::Request::SharedPtr request,
[]([[maybe_unused]] const std_srvs::srv::Trigger::Request::SharedPtr request,
std_srvs::srv::Trigger::Response::SharedPtr response) -> std_srvs::srv::Trigger::Response::SharedPtr
{
response->success = true;
Expand Down

0 comments on commit 44f13f2

Please sign in to comment.