From 440ca487789fcba776fc04e90f0ce71b4c1e86d3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 27 Jul 2021 20:23:00 +0800 Subject: [PATCH] Replace all __attribute__((packed)) with [begin|end]_packed_struct Signed-off-by: Xiang Xiao --- boards/arm/stm32/photon/src/dfu_signature.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/stm32/photon/src/dfu_signature.c b/boards/arm/stm32/photon/src/dfu_signature.c index a5bd7d011e..e0558716a1 100644 --- a/boards/arm/stm32/photon/src/dfu_signature.c +++ b/boards/arm/stm32/photon/src/dfu_signature.c @@ -43,7 +43,7 @@ * Private Types ****************************************************************************/ -__attribute__((packed)) struct dfu_signature +begin_packed_struct struct dfu_signature { uint32_t linker_start_address; uint32_t linker_end_address; @@ -52,7 +52,7 @@ __attribute__((packed)) struct dfu_signature uint8_t firmware_type1; uint8_t firmware_type2; uint8_t reserved2[8]; -}; +} end_packed_struct; /**************************************************************************** * Public Data