summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authortb <tb>2023-05-08 10:03:39 +0000
committertb <tb>2023-05-08 10:03:39 +0000
commit204d8f31d7fc003e41622e21a9303dc017ad14fa (patch)
tree7a68e82d4ace71f0435569c0e0ad75a5d883e98f /tmux.h
parent41b318ac7c881fc4cdf834ea5e14a7e8646605aa (diff)
Reorder struct grid_cell_entry
On aarch64 with llvm 15, the new -Wunaligned-access emits noise on every one of tmux's source files. This avoids this warning by moving a u_char to the end of the struct. This does not change the size of the struct on any architecture. ok nicm
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 11d8b26c..b43a2af0 100644
--- a/tmux.h
+++ b/tmux.h
@@ -723,7 +723,6 @@ struct grid_extd_entry {
/* Grid cell entry. */
struct grid_cell_entry {
- u_char flags;
union {
u_int offset;
struct {
@@ -733,6 +732,7 @@ struct grid_cell_entry {
u_char data;
} data;
};
+ u_char flags;
} __packed;
/* Grid line. */