From 916df9e38d3af191853838ab4f2b0049ee207218 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 20 Mar 2020 00:53:51 +0200 Subject: libcamera: controls: Move ControlValue size check to controls.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The size of the ControlValue class is checked by a static_assert() to avoid accidental ABI breakages. There's no need to perform the check every time controls.h is included, move it to controls.cpp. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Reviewed-by: Kieran Bingham --- include/libcamera/controls.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/libcamera/controls.h') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 5cf6280e..56ee8280 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -188,8 +188,6 @@ private: std::size_t numElements, std::size_t elementSize); }; -static_assert(sizeof(ControlValue) == 16, "Invalid size of ControlValue class"); - class ControlId { public: -- cgit v1.2.1