]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: don't use default case when switching over enum nexthop
authorDonald Sharp <sharpd@nvidia.com>
Wed, 4 Aug 2021 17:19:36 +0000 (13:19 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 4 Aug 2021 17:34:03 +0000 (13:34 -0400)
commit10cc80cafdc26e6afca4e435aafad924ff2f46b6
tree45f13ffedba3e22a527f5e1970ccb3894c822c97
parent1ae0e1b315edf256d41760bcbb631b5d2be0d087
zebra: don't use default case when switching over enum nexthop

Do not use the `default` case when switching over an enumerated
type.  This allows the code to fail to compile when we add a
new enumeration.  Thus allowing us developers to know all
the places in the code we'll need to touch.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_mpls.c