From 5ae359279ba2b72acc93c907c31850e16d10b358 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 27 Nov 2015 09:42:24 -0500 Subject: Fix build warnings --- swaymsg/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'swaymsg') diff --git a/swaymsg/main.c b/swaymsg/main.c index 9c799b54..ea8e0a55 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -133,7 +133,7 @@ int main(int argc, char **argv) { } } - uint32_t type; + uint32_t type = IPC_COMMAND; if (strcasecmp(cmdtype, "command") == 0) { type = IPC_COMMAND; @@ -149,6 +149,8 @@ int main(int argc, char **argv) { type = IPC_GET_BAR_CONFIG; } else if (strcasecmp(cmdtype, "get_version") == 0) { type = IPC_GET_VERSION; + } else { + sway_abort("Unknown message type %s", cmdtype); } free(cmdtype); -- cgit v1.2.3