From d9e3bd3248dba9c4783b41d02ccf9b4000546b5b Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 19 May 2023 00:04:11 -0700 Subject: [PATCH] silence clang-tidy warning --- include/pybind11/buffer_info.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pybind11/buffer_info.h b/include/pybind11/buffer_info.h index f8689babf..403034ed9 100644 --- a/include/pybind11/buffer_info.h +++ b/include/pybind11/buffer_info.h @@ -181,6 +181,7 @@ PYBIND11_NAMESPACE_BEGIN(detail) template struct compare_buffer_info { static bool compare(const buffer_info &b) { + // NOLINTNEXTLINE(bugprone-sizeof-expression) Needed for `PyObject *` return b.format == format_descriptor::format() && b.itemsize == (ssize_t) sizeof(T); } };