zephyr/subsys/bluetooth
Carles Cufi a1dd9a5f6e bluetooth: host: Fix alignment of gatt_chrc
The following warning is issued by clang:

warning: field  within 'struct gatt_chrc' is less aligned than 'union
gatt_chrc::(anonymous at subsys/bluetooth/host/gatt.c:1859:2)' and
is usually due to 'struct gatt_chrc' being packed, which can lead
to unaligned accesses [-Wunaligned-access]

This is due to the fact that the uint16_t uuid field requires 2-byte
alignment but it is not marked as packed. Since the enclosing struct is
indeed packed, the required alignment is not guaranteed and so clang
complains. Fix it by ensuring that the union is marked as packed too.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-04-23 14:23:04 +03:00
..
audio Bluetooth: CAP: Shell: Add cancel command 2024-04-17 14:31:56 +02:00
common Bluetooth: Remove rx < tx prio check 2024-04-18 14:56:42 +02:00
controller Bluetooth: Controller: Fix UBSan error 2024-04-18 08:05:14 -07:00
crypto Bluetooth: Logging: Move all logging symbols together 2023-03-28 10:33:24 +02:00
host bluetooth: host: Fix alignment of gatt_chrc 2024-04-23 14:23:04 +03:00
lib Bluetooth: Host: Remove 'Experimental' flag of EAD 2023-07-28 17:48:16 +02:00
mesh Bluetooth: Mesh: Remove usage of auto name in AD 2024-04-23 12:42:24 +02:00
services bluetooth: nus: Change Kconfigs prefix to BT_ZEPHYR_NUS 2024-04-02 10:36:01 +03:00
shell Bluetooth: Shell: Remove usage of auto name in AD 2024-04-23 12:42:24 +02:00
CMakeLists.txt Bluetooth: Host: Add Encrypted Advertising Data 2023-03-21 13:39:09 +02:00
Kconfig Bluetooth: ISO: Add CONFIG_BT_ISO_{RX/TX} 2024-03-02 15:05:39 +01:00
Kconfig.adv Bluetooth: Host: Add support for PAwR Sync 2023-04-26 20:08:16 +02:00
Kconfig.iso Bluetooth: ISO: Add CONFIG_BT_ISO_{RX/TX} 2024-03-02 15:05:39 +01:00
Kconfig.logging Bluetooth: Rename BT_BREDR to BT_CLASSIC 2024-03-07 11:26:45 +02:00