From d719871b33c99c1fb164f8bc563c5bd9b07ab78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 27 Jan 2024 15:31:53 +0100 Subject: [PATCH] python: remove dead code. The pybind11 code is so damn heavy that the compiler completely gave up on any unused variable warnings. --- src/python/corrade/containers.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/python/corrade/containers.cpp b/src/python/corrade/containers.cpp index 303cf23..7750801 100644 --- a/src/python/corrade/containers.cpp +++ b/src/python/corrade/containers.cpp @@ -573,8 +573,6 @@ template void stridedArrayView(py::class_ sizes{reinterpret_cast(buffer.shape)}; - Containers::StaticArrayView strides{reinterpret_cast(buffer.strides)}; /* Calculate total memory size that spans the whole view. Mainly to make the constructor assert happy, not used otherwise */ std::size_t size = 0;