mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[build] add -Wcast-align to detect potential alignment issues when casting (#4923)
This commit is contained in:
@@ -49,11 +49,12 @@
|
||||
static uint8_t sSettingsBuf[SETTINGS_BUFFER_SIZE];
|
||||
static uint16_t sSettingsBufLength;
|
||||
|
||||
OT_TOOL_PACKED_BEGIN
|
||||
struct settingsBlock
|
||||
{
|
||||
uint16_t key;
|
||||
uint16_t length;
|
||||
};
|
||||
} OT_TOOL_PACKED_END;
|
||||
|
||||
// settings API
|
||||
void otPlatSettingsInit(otInstance *aInstance)
|
||||
|
||||
Reference in New Issue
Block a user