From e69975c227d60751c92b09dac37537ede58d983a Mon Sep 17 00:00:00 2001 From: Moritz Barsnick Date: Tue, 2 Jul 2024 13:14:23 +0200 Subject: [PATCH] ExampleErrorRaiser: avoid warnings Use valid loop index types. Signed-off-by: Moritz Barsnick --- .../example_raiser/example_error_frameworkImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/examples/error-framework/ExampleErrorRaiser/example_raiser/example_error_frameworkImpl.cpp b/modules/examples/error-framework/ExampleErrorRaiser/example_raiser/example_error_frameworkImpl.cpp index 906c1ab53..d8e9ee512 100644 --- a/modules/examples/error-framework/ExampleErrorRaiser/example_raiser/example_error_frameworkImpl.cpp +++ b/modules/examples/error-framework/ExampleErrorRaiser/example_raiser/example_error_frameworkImpl.cpp @@ -36,7 +36,7 @@ std::list condition_3 = {Condition("example/ExampleErrorA", "some cus std::vector> conditions = {condition_0, condition_1, condition_2, condition_3}; void example_error_frameworkImpl::check_conditions() { - for (int i = 0; i < conditions.size(); i++) { + for (std::vector>::size_type i = 0; i < conditions.size(); i++) { if (this->error_state_monitor->is_condition_satisfied(conditions.at(i))) { EVLOG_info << "Condition " << i << " satisfied"; } else {