]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Avoid fallthrough warnings
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:36:42 +0000 (15:36 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:44:05 +0000 (15:44 +0200)
lib/printf.c
proto/bfd/packets.c
proto/ospf/dbdes.c
proto/ospf/ospf.c
proto/ospf/packet.c

index 4fd75c9b35089dd7b702b800d12173b750be5bd9..48b86a5feb992296ce8874f67dcbfcfe839be99d 100644 (file)
@@ -342,6 +342,7 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args)
 
                case 'X':
                        flags |= LARGE;
+                       /* fallthrough */
                case 'x':
                        base = 16;
                        break;
index 129db72f7da9de17d533aecbd858fadeecc7b1ff..f577ed31a6bb63c4ba41289db4d8b9ec6e682bca 100644 (file)
@@ -141,6 +141,7 @@ bfd_fill_authentication(struct bfd_proto *p, struct bfd_session *s, struct bfd_c
   case BFD_AUTH_METICULOUS_KEYED_MD5:
   case BFD_AUTH_METICULOUS_KEYED_SHA1:
     meticulous = 1;
+    /* fallthrough */
 
   case BFD_AUTH_KEYED_MD5:
   case BFD_AUTH_KEYED_SHA1:
@@ -230,6 +231,7 @@ bfd_check_authentication(struct bfd_proto *p, struct bfd_session *s, struct bfd_
   case BFD_AUTH_METICULOUS_KEYED_MD5:
   case BFD_AUTH_METICULOUS_KEYED_SHA1:
     meticulous = 1;
+    /* fallthrough */
 
   case BFD_AUTH_KEYED_MD5:
   case BFD_AUTH_KEYED_SHA1:
index d7d2a0570a87d7a1414ce52355fe5934eba1b70f..b52483b06768f8ef34e0e84a12c8bbc1c768de40 100644 (file)
@@ -347,6 +347,7 @@ ospf_receive_dbdes(struct ospf_packet *pkt, struct ospf_iface *ifa,
     ospf_neigh_sm(n, INM_2WAYREC);
     if (n->state != NEIGHBOR_EXSTART)
       return;
+    /* fallthrough */
 
   case NEIGHBOR_EXSTART:
     if ((ifa->type != OSPF_IT_VLINK) &&
index d5d5d354bff2ddd66b029a6fd790bc34e175a6f7..0c13387c7113bb9212297129db8609c34d5e2ea9 100644 (file)
@@ -1203,6 +1203,7 @@ ospf_sh_state(struct proto *P, int verbose, int reachable)
        he->domain = 1; /* Abuse domain field to mark the LSA */
        hex[jx++] = he;
       }
+      /* fallthrough */
     default:
       accept = 0;
     }
index 6b6a97a479e9edf45f74fff03fc6cb9aeedc777a..ef843a22193ac70194115c5a61fd3bfa8fc1d9ac 100644 (file)
@@ -56,6 +56,7 @@ ospf_pkt_finalize(struct ospf_iface *ifa, struct ospf_packet *pkt, uint *plen)
       return;
     }
     strncpy(auth->password, pass->password, sizeof(auth->password));
+    /* fallthrough */
 
   case OSPF_AUTH_NONE:
     {