mirror of
https://github.com/NickHu/sway
synced 2024-12-29 22:23:46 +01:00
Merge pull request #1856 from Hello71/issue1855
Work around maybe-uninitialized in bar.c
This commit is contained in:
commit
4568e6c783
1 changed files with 3 additions and 1 deletions
|
@ -162,9 +162,11 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
|
|||
return;
|
||||
}
|
||||
|
||||
// last doesn't actually need initialization,
|
||||
// but gcc (7.3.1) is too dumb to figure it out
|
||||
struct swaybar_workspace *first = NULL;
|
||||
struct swaybar_workspace *active = NULL;
|
||||
struct swaybar_workspace *last;
|
||||
struct swaybar_workspace *last = NULL;
|
||||
|
||||
struct swaybar_workspace *iter;
|
||||
wl_list_for_each(iter, &output->workspaces, link) {
|
||||
|
|
Loading…
Reference in a new issue