dbus.c: fix compiler warning (#1870)

[ 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.
This commit is contained in:
Daniel Hahler 2017-06-25 15:53:01 +02:00 committed by GitHub
parent c9c02aef67
commit d9631eac12
1 changed files with 1 additions and 1 deletions

2
dbus.c
View File

@ -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: \
{ \