[build] add -Wcast-align to detect potential alignment issues when casting (#4923)

This commit is contained in:
Diego Ismirlian
2020-05-06 17:42:48 -07:00
committed by GitHub
parent 49f36f8c24
commit eb4125c97d
19 changed files with 74 additions and 7 deletions
+2 -1
View File
@@ -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)