• Gustavo A. R. Silva's avatar
    afs: fsclient: Mark expected switch fall-throughs · 29881608
    Gustavo A. R. Silva authored
    In preparation to enabling -Wimplicit-fallthrough, mark switch
    cases where we are expecting to fall through.
    
    This patch fixes the following warnings:
    
    Warning level 3 was used: -Wimplicit-fallthrough=3
    
    fs/afs/fsclient.c: In function ‘afs_deliver_fs_fetch_acl’:
    fs/afs/fsclient.c:2199:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
       call->unmarshall++;
       ~~~~~~~~~~~~~~~~^~
    fs/afs/fsclient.c:2202:2: note: here
      case 1:
      ^~~~
    fs/afs/fsclient.c:2216:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
       call->unmarshall++;
       ~~~~~~~~~~~~~~~~^~
    fs/afs/fsclient.c:2219:2: note: here
      case 2:
      ^~~~
    fs/afs/fsclient.c:2225:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
       call->unmarshall++;
       ~~~~~~~~~~~~~~~~^~
    fs/afs/fsclient.c:2228:2: note: here
      case 3:
      ^~~~
    
    This patch is part of the ongoing efforts to enable
    -Wimplicit-fallthrough.
    Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
    29881608
fsclient.c 56 KB