From d9631eac12f3b90378a59de01e632aa965378326 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 25 Jun 2017 15:53:01 +0200 Subject: [PATCH] dbus.c: fix compiler warning (#1870) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ 57%] Building C object CMakeFiles/awesome.dir/dbus.c.o …/awesome/build/dbus.c: In function ‘a_dbus_message_iter’: …/awesome/build/dbus.c:137:27: warning: statement will never be executed [-Wswitch-unreachable] int datalen = 0; ^~~~~~~ It was changed in dd862007, but probably not intentional. --- dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus.c b/dbus.c index d67aad09c..06a4dfa10 100644 --- a/dbus.c +++ b/dbus.c @@ -134,7 +134,7 @@ a_dbus_message_iter(lua_State *L, DBusMessageIter *iter) switch(array_type) { - int datalen = 0; + int datalen; #define DBUS_MSG_HANDLE_ARRAY_TYPE_NUMBER_OR_INT(type, dbustype, pusher) \ case dbustype: \ { \