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:
@@ -86,6 +86,8 @@ static constexpr size_t ControlValueSize[] = {
|
||||
* \brief Abstract type representing the value of a control
|
||||
*/
|
||||
|
||||
static_assert(sizeof(ControlValue) == 16, "Invalid size of ControlValue class");
|
||||
|
||||
/**
|
||||
* \brief Construct an empty ControlValue.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user