diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-08 10:03:40 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-08 10:03:40 +0000 |
commit | 3897886af5b0dde622202150263ab8c36baae1c1 (patch) | |
tree | 43a112bbcbc93964e5a0bde88688d2e961747a20 /usr.bin/tmux/grid.c | |
parent | d9b93833ab7552a6a5fe4ffdd54690113321dd75 (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 'usr.bin/tmux/grid.c')
-rw-r--r-- | usr.bin/tmux/grid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 552a88eb073..09816b5a6af 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.127 2022/09/28 07:55:29 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.128 2023/05/08 10:03:39 tb Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -53,7 +53,7 @@ static const struct grid_cell grid_cleared_cell = { { { ' ' }, 0, 1, 1 }, 0, GRID_FLAG_CLEARED, 8, 8, 0, 0 }; static const struct grid_cell_entry grid_cleared_entry = { - GRID_FLAG_CLEARED, { .data = { 0, 8, 8, ' ' } } + { .data = { 0, 8, 8, ' ' } }, GRID_FLAG_CLEARED }; /* Store cell in entry. */ |