Skip to content

Commit 208259c

Browse files
committed
fix warnings
1 parent 6f0b886 commit 208259c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/behaviortree_cpp/scripting/operators.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ struct ExprBinaryArithmetic : ExprBase
162162
case logic_or:
163163
return "||";
164164
}
165+
return "";
165166
}
166167

167168
expr_ptr lhs, rhs;
@@ -307,6 +308,7 @@ struct ExprComparison : ExprBase
307308
case greater_equal:
308309
return ">=";
309310
}
311+
return "";
310312
}
311313

312314
std::vector<op_t> ops;
@@ -445,6 +447,7 @@ struct ExprAssignment : ExprBase
445447
case assign_div:
446448
return "/=";
447449
}
450+
return "";
448451
}
449452

450453
expr_ptr lhs, rhs;

tests/script_parser_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BT::Any GetScriptResult(BT::Ast::Environment& environment, const char* text)
2525
{
2626
return {};
2727
}
28-
};
28+
}
2929

3030
TEST(ParserTest, AnyTypes)
3131
{

0 commit comments

Comments
 (0)