bearer-mbim: fix warnings with -Wimplicit-fallthrough

mm-bearer-mbim.c: In function ‘connect_context_step’:
  mm-bearer-mbim.c:843:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
    843 |         ctx->step++;
        |         ~~~~~~~~~^~
  mm-bearer-mbim.c:845:5: note: here
    845 |     case CONNECT_STEP_PACKET_SERVICE: {
        |     ^~~~
  mm-bearer-mbim.c: In function ‘disconnect_context_step’:
  mm-bearer-mbim.c:1269:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
   1269 |         ctx->step++;
        |         ~~~~~~~~~^~
  mm-bearer-mbim.c:1271:5: note: here
   1271 |     case DISCONNECT_STEP_DISCONNECT: {
        |     ^~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:15 +01:00
parent 0a47c4bb6a
commit 9cffa62cf6
+2 -2
View File
@@ -839,8 +839,8 @@ connect_context_step (GTask *task)
switch (ctx->step) {
case CONNECT_STEP_FIRST:
/* Fall down */
ctx->step++;
/* Fall through */
case CONNECT_STEP_PACKET_SERVICE: {
GError *error = NULL;
@@ -1268,8 +1268,8 @@ disconnect_context_step (GTask *task)
switch (ctx->step) {
case DISCONNECT_STEP_FIRST:
/* Fall down */
ctx->step++;
/* Fall through */
case DISCONNECT_STEP_DISCONNECT: {
MbimMessage *message;