From 67d78789cdbfa2c60b617c6e768832a6c0305b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 27 Jan 2024 16:10:40 +0100 Subject: [PATCH] python: properly initialize all members even if unused. --- src/Corrade/Containers/StridedArrayViewPythonBindings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corrade/Containers/StridedArrayViewPythonBindings.h b/src/Corrade/Containers/StridedArrayViewPythonBindings.h index bb90a34..d952c09 100644 --- a/src/Corrade/Containers/StridedArrayViewPythonBindings.h +++ b/src/Corrade/Containers/StridedArrayViewPythonBindings.h @@ -74,7 +74,7 @@ template class PyStridedArrayView: public StridedA /* Null function pointers should be okay as it shouldn't ever get to them -- IndexError gets fired first. Not really sure about the format, choosing bytes for safety. */ - /*implicit*/ PyStridedArrayView(): format{"B"}, getitem{} {} + /*implicit*/ PyStridedArrayView(): format{"B"}, getitem{}, setitem{} {} template explicit PyStridedArrayView(const StridedArrayView& view): PyStridedArrayView{view, Implementation::pythonFormatString::type>(), sizeof(U)} {}