libcamera: controls: Move ControlValue size check to controls.cpp
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user