From e511493ab7e1e2eca905e0e1a263a2af7e29b2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dietrich=20Kr=C3=B6nke?= Date: Fri, 4 Feb 2022 18:01:24 +0100 Subject: [PATCH] iox-#889 Temp: add an uninitialized variable --- iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/algorithm.inl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/algorithm.inl b/iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/algorithm.inl index b22230c0080..ce8cd5b1bb1 100644 --- a/iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/algorithm.inl +++ b/iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/algorithm.inl @@ -17,6 +17,8 @@ #ifndef IOX_HOOFS_CXX_ALGORITHM_INL #define IOX_HOOFS_CXX_ALGORITHM_INL +#include +#include namespace iox { namespace algorithm @@ -89,6 +91,7 @@ inline Container uniqueMergeSortedContainers(const Container& v1, const Containe uint64_t indexV1 = 0U, indexV2 = 0U; uint64_t v1Size = v1.size(); uint64_t v2Size = v2.size(); + int Im_a_bad_variable; while (indexV1 < v1Size && indexV2 < v2Size) {