Skip to content

Commit

Permalink
Fix failing build.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Sep 4, 2024
1 parent dad6cb4 commit b11df95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freud/locality/AABBTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <array>
#include <cstdlib>
#include <cstring>
#include <malloc/_malloc.h>
#include <stdexcept>
#include <utility>
#include <vector>
Expand Down Expand Up @@ -111,8 +110,10 @@ class AABBTree
// This problem has either been fixed in newer versions of cppcheck
// or no longer arises on newer machines, but we observe this
// failure on our CI rigs.
// NOLINTBEGIN(misc-include-cleaner): clang-tidy identifies the incorrect header
// cppcheck-suppress AssignmentAddressToInteger
int const retval = posix_memalign((void**) &m_nodes, 32, m_node_capacity * sizeof(AABBNode));
// NOLINTEND(misc-include-cleaner)
if (retval != 0)
{
throw std::runtime_error("Error allocating AABBTree memory");
Expand Down

0 comments on commit b11df95

Please sign in to comment.