case SAFI_ENCAP:
case SAFI_EVPN:
return (struct prefix_rd *)(bgp_dest_get_prefix(dest));
- default:
+ case SAFI_UNSPEC:
+ case SAFI_UNICAST:
+ case SAFI_MULTICAST:
+ case SAFI_LABELED_UNICAST:
+ case SAFI_FLOWSPEC:
+ case SAFI_MAX:
return NULL;
}
+
+ assert(!"Reached end of function when we were not expecting it");
}
/* Display specified route of BGP table. */
case AFI_L2VPN:
space = EVPN_ROUTE_PREFIXLEN;
break;
- default:
+ case AFI_UNSPEC:
+ case AFI_MAX:
return;
}
case AFI_L2VPN:
bitlen = EVPN_ROUTE_PREFIXLEN;
break;
- default:
+ case AFI_UNSPEC:
+ case AFI_MAX:
break;
}