You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma pack(push, 1) should produce a -Wcheri-capability-misuse warning due to pointer alignment, but currently doesn't. I think the behaviour should be similar to __attribute__((packed))
/* Pack structures to reduce required space */
/* Pragma */
#pragma pack(push, 1)
typedef struct {
int iValue;
const char *pszKey;
} stPragma_t;
#pragma pack(pop)
/* Attribute */
typedef struct {
int iValue;
const char *pszKey;
} __attribute__((packed)) stAttribute_t;
The text was updated successfully, but these errors were encountered:
#pragma pack(push, 1)
should produce a-Wcheri-capability-misuse
warning due to pointer alignment, but currently doesn't. I think the behaviour should be similar to__attribute__((packed))
The text was updated successfully, but these errors were encountered: