From 23e89196c0aceedae13c53a7c7941d26bdfe910c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 20 Nov 2019 10:52:17 -0800 Subject: [PATCH] [toolchain] remove unnecessary OT_TOOL_ALIGN (#4344) --- include/openthread/platform/toolchain.h | 15 --------------- include/openthread/thread.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/include/openthread/platform/toolchain.h b/include/openthread/platform/toolchain.h index 6f76d6884..7eea6a611 100644 --- a/include/openthread/platform/toolchain.h +++ b/include/openthread/platform/toolchain.h @@ -85,13 +85,6 @@ extern "C" { * */ -/** - * @def OT_TOOL_ALIGN - * - * Compiler-specific alignment modifier. - * - */ - /** * @def OT_TOOL_WEAK * @@ -111,8 +104,6 @@ extern "C" { #define OT_TOOL_PACKED_END __attribute__((packed)) #define OT_TOOL_WEAK __attribute__((weak)) -#define OT_TOOL_ALIGN(X) - #elif defined(__ICCARM__) || defined(__ICC8051__) // http://supp.iar.com/FilesPublic/UPDINFO/004916/arm/doc/EWARM_DevelopmentGuide.ENU.pdf @@ -124,8 +115,6 @@ extern "C" { #define OT_TOOL_PACKED_END #define OT_TOOL_WEAK __weak -#define OT_TOOL_ALIGN(X) - #elif defined(__SDCC) // Structures are packed by default in sdcc, as it primarily targets 8-bit MCUs. @@ -135,8 +124,6 @@ extern "C" { #define OT_TOOL_PACKED_END #define OT_TOOL_WEAK -#define OT_TOOL_ALIGN(X) - #else #error "Error: No valid Toolchain specified" @@ -148,8 +135,6 @@ extern "C" { #define OT_TOOL_PACKED_END #define OT_TOOL_WEAK -#define OT_TOOL_ALIGN(X) - #endif // =========== TOOLCHAIN SELECTION : END =========== diff --git a/include/openthread/thread.h b/include/openthread/thread.h index 648d2883d..4a97b5b7a 100644 --- a/include/openthread/thread.h +++ b/include/openthread/thread.h @@ -74,7 +74,6 @@ typedef enum /** * This structure represents an MLE Link Mode configuration. */ -OT_TOOL_ALIGN(4) typedef struct otLinkModeConfig { bool mRxOnWhenIdle : 1; ///< 1, if the sender has its receiver on when not transmitting. 0, otherwise. @@ -130,7 +129,6 @@ typedef struct otLeaderData * This structure holds diagnostic information for a Thread Router * */ -OT_TOOL_ALIGN(4) typedef struct { otExtAddress mExtAddress; ///< IEEE 802.15.4 Extended Address