From 01d04917cb0d63317e5e9c0ed68572c5fe919fc5 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Mon, 19 Feb 2024 18:41:50 +0000 Subject: [PATCH] AP_Mount: squash static_assert warnings --- libraries/AP_Mount/AP_Mount_Siyi.h | 2 +- libraries/AP_Mount/AP_Mount_Xacti.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.h b/libraries/AP_Mount/AP_Mount_Siyi.h index 2245e4ca0d..5a3f228a91 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.h +++ b/libraries/AP_Mount/AP_Mount_Siyi.h @@ -204,7 +204,7 @@ private: GimbalMountingDirection mounting_dir; VideoOutputStatus video_mode; } GimbalConfigInfo; - static_assert(sizeof(GimbalConfigInfo) == 7); + static_assert(sizeof(GimbalConfigInfo) == 7, "GimbalConfigInfo must be 7 bytes"); // camera image types (aka lens) enum class CameraImageType : uint8_t { diff --git a/libraries/AP_Mount/AP_Mount_Xacti.h b/libraries/AP_Mount/AP_Mount_Xacti.h index 247a66bac1..444acd3719 100644 --- a/libraries/AP_Mount/AP_Mount_Xacti.h +++ b/libraries/AP_Mount/AP_Mount_Xacti.h @@ -252,7 +252,7 @@ private: uint16_t apeture; // cameras' aperture * 100 uint16_t iso_sensitivity; // camera's iso sensitivity } _status; // latest status received - static_assert(sizeof(_status) == 48); // status should be 48 bytes + static_assert(sizeof(_status) == 48, "status must be 48 bytes"); // status should be 48 bytes struct { uint32_t last_request_ms; // system time that status was last requested uint32_t last_error_status; // last error status reported to user