Skip to content

Commit

Permalink
suppress a static analysis error which seems to be wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarkuehl committed Jan 13, 2025
1 parent d702a16 commit 4dc8a93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/beman/lazy/detail/lazy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ struct lazy {
return ::beman::lazy::detail::coroutine_allocate<C>(size, a...);
}
void operator delete(void* ptr, std::size_t size) {
#if defined(__GNUC__)
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmismatched-new-delete"
#endif
return ::beman::lazy::detail::coroutine_deallocate<C>(ptr, size);
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
}

template <typename... A>
Expand Down

0 comments on commit 4dc8a93

Please sign in to comment.