QtDBus: compile with GCC 7

GCC 7 warns about implicit fall-throughs now.

Fix by adding the missing comments.

Change-Id: I629fb3aced9296c81496f19f6ff78c7a5a12e991
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2016-10-06 18:58:23 +02:00
parent afe5bcdbd1
commit eade394e99
1 changed files with 14 additions and 0 deletions

View File

@ -755,18 +755,25 @@ QDBusMessage QDBusAbstractInterface::call(QDBus::CallMode mode, const QString &m
switch (count) {
case 8:
argList.prepend(arg8);
// fall through
case 7:
argList.prepend(arg7);
// fall through
case 6:
argList.prepend(arg6);
// fall through
case 5:
argList.prepend(arg5);
// fall through
case 4:
argList.prepend(arg4);
// fall through
case 3:
argList.prepend(arg3);
// fall through
case 2:
argList.prepend(arg2);
// fall through
case 1:
argList.prepend(arg1);
}
@ -813,18 +820,25 @@ QDBusPendingCall QDBusAbstractInterface::asyncCall(const QString &method, const
switch (count) {
case 8:
argList.prepend(arg8);
// fall through
case 7:
argList.prepend(arg7);
// fall through
case 6:
argList.prepend(arg6);
// fall through
case 5:
argList.prepend(arg5);
// fall through
case 4:
argList.prepend(arg4);
// fall through
case 3:
argList.prepend(arg3);
// fall through
case 2:
argList.prepend(arg2);
// fall through
case 1:
argList.prepend(arg1);
}