From f8b1480f95bd2710a506b6f9c5a06ed464464e61 Mon Sep 17 00:00:00 2001 From: Sumo Gr Date: Sat, 18 Apr 2020 18:04:20 +0300 Subject: [PATCH] unit_tests: fix gcc+ warning --- tests/unit_tests/levin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp index 62b101a42..d2ef920ef 100644 --- a/tests/unit_tests/levin.cpp +++ b/tests/unit_tests/levin.cpp @@ -583,7 +583,9 @@ TEST_F(levin_notify, stem_without_padding) { const std::size_t sent = context->process_send_queue(); if (sent && is_stem) + { EXPECT_EQ(1u, (context - contexts_.begin()) % 2); + } send_count += sent; } @@ -653,7 +655,9 @@ TEST_F(levin_notify, local_without_padding) { const std::size_t sent = context->process_send_queue(); if (sent && is_stem) + { EXPECT_EQ(1u, (context - contexts_.begin()) % 2); + } send_count += sent; }