From 8ece7d641ca6ce316e59fec6744b8517073bbe32 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 3 Jan 2023 20:42:38 -0800 Subject: [PATCH] Resolve new clang-tidy error (after upgrade to clang15 with PR #4387) --- include/pybind11/detail/smart_holder_type_casters.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pybind11/detail/smart_holder_type_casters.h b/include/pybind11/detail/smart_holder_type_casters.h index b3289773a..ee7915775 100644 --- a/include/pybind11/detail/smart_holder_type_casters.h +++ b/include/pybind11/detail/smart_holder_type_casters.h @@ -403,6 +403,7 @@ struct shared_ptr_trampoline_self_life_support { gil_scoped_acquire gil; Py_INCREF(self); } + // NOLINTNEXTLINE(readability-make-member-function-const) void operator()(void *) { gil_scoped_acquire gil; Py_DECREF(self);