This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 59416af3e697ab89a85f8598751654422f63d46c Author: Xiang Xiao <[email protected]> AuthorDate: Sun Oct 30 12:18:34 2022 +0800 Fix modem/alt1250/altcom_cmd_sms.h:148:7: error: field u within 'struct apicmd_sms_msg_s' is less aligned than 'union Signed-off-by: Xiang Xiao <[email protected]> --- drivers/modem/alt1250/altcom_cmd_sms.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/modem/alt1250/altcom_cmd_sms.h b/drivers/modem/alt1250/altcom_cmd_sms.h index 6eb19572ad..6bc5e8e076 100644 --- a/drivers/modem/alt1250/altcom_cmd_sms.h +++ b/drivers/modem/alt1250/altcom_cmd_sms.h @@ -123,7 +123,7 @@ begin_packed_struct struct apicmd_sms_msg_s { /* SMS-DELIVER */ - struct + begin_packed_struct struct { uint8_t valid_indicator; struct apicmd_sms_addr_s src_addr; @@ -134,17 +134,19 @@ begin_packed_struct struct apicmd_sms_msg_s /* Variable length array */ uint16_t user_data[0]; - } recv; + } + end_packed_struct recv; /* SMS-STATUS-REPORT */ - struct + begin_packed_struct struct { uint8_t status; struct apicmd_sms_time_s sc_time; uint8_t ref_id; struct apicmd_sms_time_s discharge_time; - } delivery_report; + } + end_packed_struct delivery_report; } u; } end_packed_struct;
