From 3a59626a7a82478bcc1ab9022e00580186b9f38c Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Fri, 19 May 2017 17:32:27 +0200 Subject: [PATCH] interface-linux: fix this statement may fall through [-Wimplicit-fallthrough=] with gcc7 --- src/daemon/interfaces-linux.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5