ARM's Morello CHERI architecture does not support pointers in packed

structures, so remove the packed attribute on struct grid_line and
reorder the members to eliminate unnecessary padding. From Jessica
Clarke in GitHub issue 3012.
This commit is contained in:
nicm 2021-12-21 13:07:53 +00:00
parent e4856de8bf
commit ff64aafeab

6
tmux.h
View File

@ -668,15 +668,15 @@ struct grid_cell_entry {
/* Grid line. */
struct grid_line {
struct grid_cell_entry *celldata;
u_int cellused;
u_int cellsize;
struct grid_cell_entry *celldata;
u_int extdsize;
struct grid_extd_entry *extddata;
u_int extdsize;
int flags;
} __packed;
};
/* Entire grid of cells. */
struct grid {