commit fed69768403d236eb464928fc0886a89a6efc1a2
parent d6a5dfc913ba958d38af907ddb7acd7483a1cee7
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 27 Aug 2018 08:16:25 -0400
Merge pull request #2522 from ascent12/build_fix
Build fix
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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')
diff --git 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) {