From 71809e0a0f719950d8eba03c9efc11fa12b7f0f6 Mon Sep 17 00:00:00 2001 From: Kenneth Weiss Date: Wed, 18 Sep 2024 16:38:45 -0700 Subject: [PATCH] Fix warnings w/ clang compiler in Debug config --- src/axom/core/tests/core_array_for_all.hpp | 5 ----- src/axom/primal/operators/winding_number.hpp | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/axom/core/tests/core_array_for_all.hpp b/src/axom/core/tests/core_array_for_all.hpp index 04ee2459dc..8713f20e5b 100644 --- a/src/axom/core/tests/core_array_for_all.hpp +++ b/src/axom/core/tests/core_array_for_all.hpp @@ -495,7 +495,6 @@ AXOM_TYPED_TEST(core_array_for_all, dynamic_array_initializer_list) { using DynamicArray = typename TestFixture::DynamicArray; using HostArray = typename TestFixture::HostArray; - using ExecSpace = typename TestFixture::ExecSpace; int kernelAllocID = TestFixture::getKernelAllocatorID(); @@ -616,7 +615,6 @@ AXOM_TYPED_TEST(core_array_for_all, dynamic_array_resize) //------------------------------------------------------------------------------ AXOM_TYPED_TEST(core_array_for_all, dynamic_array_of_arrays) { - using ExecSpace = typename TestFixture::ExecSpace; using DynamicArray = typename TestFixture::DynamicArray; using HostArray = typename TestFixture::HostArray; using ArrayOfArrays = @@ -838,7 +836,6 @@ int NonTrivialDtor::dtor_calls {0}; AXOM_TYPED_TEST(core_array_for_all, nontrivial_dtor_obj) { - using ExecSpace = typename TestFixture::ExecSpace; using DynamicArray = typename TestFixture::template DynamicTArray; using HostArray = typename TestFixture::template HostTArray; @@ -1229,10 +1226,8 @@ AXOM_TYPED_TEST(core_array_for_all, device_insert) //------------------------------------------------------------------------------ AXOM_TYPED_TEST(core_array_for_all, unified_mem_preference) { - using ExecSpace = typename TestFixture::ExecSpace; using KernelArray = typename TestFixture::KernelArray; - int kernelAllocID = TestFixture::getKernelAllocatorID(); #if defined(AXOM_USE_RAJA) && defined(AXOM_USE_CUDA) && defined(AXOM_USE_UMPIRE) if(TestFixture::exec_space_memory != axom::MemorySpace::Unified && TestFixture::exec_space_memory != axom::MemorySpace::Pinned) diff --git a/src/axom/primal/operators/winding_number.hpp b/src/axom/primal/operators/winding_number.hpp index 036e99567d..d5315895ae 100644 --- a/src/axom/primal/operators/winding_number.hpp +++ b/src/axom/primal/operators/winding_number.hpp @@ -334,6 +334,8 @@ double winding_number(const Point& q, double edge_tol = 1e-8, double EPS = 1e-8) { + AXOM_UNUSED_VAR(EPS); + double ret_val = 0.0; for(int i = 0; i < carray.size(); i++) {