mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-20 06:05:16 +00:00
Fix Clang warning
Without this, Clang would complain:
```
In file included from kitty/fonts.c:9:
In file included from kitty/fonts.h:9:
kitty/lineops.h:67:29: error: suggest braces around initialization of subobject
[-Werror,-Wmissing-braces]
const CellAttrs zero = {0};
^
{}
```
This commit is contained in:
parent
40b50332de
commit
0fe7796df0
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ left_shift_line(Line *line, index_type at, index_type num) {
|
|||
COPY_CELL(line, i + num, line, i);
|
||||
}
|
||||
const CellAttrs empty = {.width=1};
|
||||
const CellAttrs zero = {0};
|
||||
const CellAttrs zero = {{0}};
|
||||
if (at < line->xnum && line->gpu_cells[at].attrs.width != 1) {
|
||||
line->cpu_cells[at].ch = BLANK_CHAR;
|
||||
line->cpu_cells[at].hyperlink_id = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue