From 5de4967f235bbf8b8b47e856ecac22c01257660e Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 30 Jan 2020 23:22:00 +0100 Subject: [PATCH] ip4: forward: try to fix the build... ... by adding a default case --- src/core/ipv4/ip4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 085a17f5..d4686895 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -365,6 +365,9 @@ ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) } break; #endif + default: + /* there's really nothing to do here other than satisfying 'switch-default' */ + break; } LWIP_DEBUGF(IP_DEBUG, ("ip4_forward: forwarding packet to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",