From 0bd17b2c9c16391d7e2d9a1ee4b62f232ad7dbc6 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 28 Feb 2020 13:52:47 +0900 Subject: [PATCH] include: audio: Remove packed_struct from struct ap_buffer_s NOTE: This change suppresses unaligned access warnings with arm gcc9 Signed-off-by: Masayuki Ishikawa --- include/nuttx/audio/audio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nuttx/audio/audio.h b/include/nuttx/audio/audio.h index 20dc9359cf..5be6431c17 100644 --- a/include/nuttx/audio/audio.h +++ b/include/nuttx/audio/audio.h @@ -403,7 +403,7 @@ struct ap_buffer_info_s /* This structure describes an Audio Pipeline Buffer */ -begin_packed_struct struct ap_buffer_s +struct ap_buffer_s { struct dq_entry_s dq_entry; /* Double linked queue entry */ struct audio_info_s i; /* The info for samples in this buffer */ @@ -417,7 +417,7 @@ begin_packed_struct struct ap_buffer_s uint16_t flags; /* Buffer flags */ uint16_t crefs; /* Number of reference counts */ FAR uint8_t *samp; /* Offset of the first sample */ -} end_packed_struct; +}; /* Structure defining the messages passed to a listening audio thread * for dequeuing buffers and other operations. Also used to allocate