summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-27 08:16:25 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-27 08:16:25 -0400
commitfed69768403d236eb464928fc0886a89a6efc1a2 (patch)
tree2947a0c67b309c57400d19d520cced8eceaa273b
parentMerge pull request #2518 from ianyfan/ipc (diff)
parentInitialise variable properly (diff)
downloadsway-fed69768403d236eb464928fc0886a89a6efc1a2.tar.gz
sway-fed69768403d236eb464928fc0886a89a6efc1a2.tar.zst
sway-fed69768403d236eb464928fc0886a89a6efc1a2.zip
Merge pull request #2522 from ascent12/build_fix
Build fix
-rw-r--r--meson.build1
-rw-r--r--sway/commands/move.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 0e4b4f21..d5b33e6b 100644
--- a/meson.build
+++ b/meson.build
@@ -12,6 +12,7 @@ project(
12add_project_arguments('-Wno-unused-parameter', language: 'c') 12add_project_arguments('-Wno-unused-parameter', language: 'c')
13add_project_arguments('-Wno-unused-function', language: 'c') 13add_project_arguments('-Wno-unused-function', language: 'c')
14add_project_arguments('-Wno-unused-result', language: 'c') 14add_project_arguments('-Wno-unused-result', language: 'c')
15add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
15add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c') 16add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
16 17
17cc = meson.get_compiler('c') 18cc = meson.get_compiler('c')
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,
52 { "right", WLR_DIRECTION_RIGHT }, 52 { "right", WLR_DIRECTION_RIGHT },
53 }; 53 };
54 54
55 enum wlr_direction direction; 55 enum wlr_direction direction = 0;
56 56
57 for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) { 57 for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) {
58 if (strcasecmp(names[i].name, direction_string) == 0) { 58 if (strcasecmp(names[i].name, direction_string) == 0) {