From ff86dc0c358523cfc2fce050c041c27a448533fb Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 27 Aug 2018 18:01:00 +1200 Subject: [PATCH 1/2] Hide deprecated wayland functions --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 0e4b4f21..d5b33e6b 100644 --- a/meson.build +++ b/meson.build @@ -12,6 +12,7 @@ project( add_project_arguments('-Wno-unused-parameter', language: 'c') add_project_arguments('-Wno-unused-function', language: 'c') add_project_arguments('-Wno-unused-result', language: 'c') +add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c') add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c') cc = meson.get_compiler('c') From 31c3c8a365f0a2afc3c2c28e7f0913b566fd656b Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 27 Aug 2018 18:01:17 +1200 Subject: [PATCH 2/2] Initialise variable properly --- sway/commands/move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/move.c b/sway/commands/move.c index d0f6b9ea..7b7cb8f3 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -52,7 +52,7 @@ static struct sway_container *output_in_direction(const char *direction_string, { "right", WLR_DIRECTION_RIGHT }, }; - enum wlr_direction direction; + enum wlr_direction direction = 0; for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) { if (strcasecmp(names[i].name, direction_string) == 0) {