From: Alexis La Goutte Date: Fri, 19 May 2017 15:32:27 +0000 (+0200) Subject: interface-linux: fix this statement may fall through [-Wimplicit-fallthrough=] with... X-Git-Tag: 0.9.8~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a59626a7a82478bcc1ab9022e00580186b9f38c;p=thirdparty%2Flldpd.git interface-linux: fix this statement may fall through [-Wimplicit-fallthrough=] with gcc7 --- diff --git a/src/daemon/interfaces-linux.c b/src/daemon/interfaces-linux.c index 6e0db0e2..92aad6a5 100644 --- a/src/daemon/interfaces-linux.c +++ b/src/daemon/interfaces-linux.c @@ -479,10 +479,12 @@ iflinux_macphy(struct lldpd_hardware *hardware) // Same kind of approximation. port->p_macphy.mau_type = (uset.base.port == PORT_FIBRE) ? \ LLDP_DOT3_MAU_40GBASELR4 : LLDP_DOT3_MAU_40GBASECR4; + break; case SPEED_100000: // Ditto port->p_macphy.mau_type = (uset.base.port == PORT_FIBRE) ? \ LLDP_DOT3_MAU_100GBASELR4 : LLDP_DOT3_MAU_100GBASECR10; + break; } if (uset.base.port == PORT_AUI) port->p_macphy.mau_type = LLDP_DOT3_MAU_AUI; }