From 98083798c718921d0838f419fa7604310a55c051 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 19:11:17 -0400 Subject: Fix uninitialized variable --- .clang-tidy | 1 - test/test_gray_code_rank.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index f9bed5d..0c487a6 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -13,7 +13,6 @@ Checks: > -altera-*, -bugprone-easily-swappable-parameters, -cert-oop54-cpp, - -cppcoreguidelines-init-variables, -cppcoreguidelines-owning-memory, -cppcoreguidelines-pro-bounds-constant-array-index, -cppcoreguidelines-pro-bounds-pointer-arithmetic, diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp index 05f1ae1..3b6f9bb 100644 --- a/test/test_gray_code_rank.cpp +++ b/test/test_gray_code_rank.cpp @@ -38,7 +38,7 @@ T get_mask(const std::array& ms, const size_t d, const size_t step) { T mask = make_zero_bitvec(); - size_t b; + size_t b = 0U; chilbert::detail::extract_mask(ms.data(), D, d, step, mask, b); assert(b == mask.count()); -- cgit v1.2.1