summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-10-06 18:58:23 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-10-12 08:16:49 +0000
commiteade394e993bb190bb71152ea0bd805beade6f59 (patch)
treebbd290ecfa40568abc236654f534c73a1c1aa8d0 /src/dbus
parentafe5bcdbd1dbf8c8a229d75d16b614f5e645d32f (diff)
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>
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusabstractinterface.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dbus/qdbusabstractinterface.cpp b/src/dbus/qdbusabstractinterface.cpp
index d63a317612..d12a7d127e 100644
--- a/src/dbus/qdbusabstractinterface.cpp
+++ b/src/dbus/qdbusabstractinterface.cpp
@@ -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);
}