From 8fbc34a356b4ce35b358a91473ef4f34356e36f5 Mon Sep 17 00:00:00 2001 From: Guillaume Souchere Date: Mon, 12 Feb 2024 09:39:53 +0100 Subject: [PATCH] fix(esp_attr): Remove semiclon from PACKED attribute When the macro was introduced, a semicolon was added at the end of the definition and merged like that in v5.2 release. The semicolon was then removed in master but the change was never backported in v5.2. This commit removes the semicolon to the definition of the PATCKED_ATTR macro in v5.2. Closes https://github.com/espressif/esp-idf/issues/13149 --- components/esp_common/include/esp_attr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_common/include/esp_attr.h b/components/esp_common/include/esp_attr.h index b3c9b10807..2ce549b6fe 100644 --- a/components/esp_common/include/esp_attr.h +++ b/components/esp_common/include/esp_attr.h @@ -58,7 +58,7 @@ extern "C" { #define DMA_ATTR WORD_ALIGNED_ATTR DRAM_ATTR // Forces the data to be tightly packed with minimum required padding and no extra bytes are added for alignment -#define PACKED_ATTR __attribute__((packed)); +#define PACKED_ATTR __attribute__((packed)) // Forces a function to be inlined #define FORCE_INLINE_ATTR static inline __attribute__((always_inline))