summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libcamera/controls.h2
-rw-r--r--src/libcamera/controls.cpp2
2 files changed, 2 insertions, 2 deletions
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:
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 11cec519..fefd292b 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -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.
*/