Skip to content

Commit 0b71d52

Browse files
authored
clang: fix warning
fix warning: lambda capture 'this' is not used
1 parent a28df0f commit 0b71d52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ inline Result TreeNode::getInput(const std::string& key, T& destination) const
378378
// address the special case where T is an enum
379379
auto ParseString = [this](const std::string& str) -> T
380380
{
381+
(void)this; // maybe unused
381382
if constexpr (std::is_enum_v<T> && !std::is_same_v<T, NodeStatus>)
382383
{
383384
auto it = config().enums->find(str);

0 commit comments

Comments
 (0)