From ed3f3f6aa6f2dded584e1b3d3f97e8bceea1b2cd Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Fri, 18 Oct 2024 18:06:32 +0200 Subject: libcamera: controls: Add missing size to control_type The size member is missing in control_type. This did not do any harm because the only control using the Point type was an array control. As soon as a control-id with a non-array Point control gets defined, the compile fails with: error: size is not a member of libcamera::details::control_type Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint") Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder Signed-off-by: Kieran Bingham --- include/libcamera/controls.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index ca60bbac..28fec767 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -101,6 +101,7 @@ struct control_type { template<> struct control_type { static constexpr ControlType value = ControlTypePoint; + static constexpr std::size_t size = 0; }; template -- cgit v1.2.1