We now need to define __fallthrough for one part because
cpp strips comments from preprocessed code and I don't want to
enforce needing -C in CFLAGS to avoid this.
#endif
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
+# ifndef __fallthrough
+# define __fallthrough __attribute__((fallthrough))
+# endif
# ifndef __packed
# define __packed __attribute__((__packed__))
# endif
# define __unused __attribute__((__unused__))
# endif
#else
+# ifndef __fallthrough
+# define __fallthrough
+# endif
# ifndef __packed
# define __packed
# endif
break;
}
return;
+#else
+ break;
#endif
default:
logerrx("%s: invalid DHCP6 type %s (%d)",
ia->sla = NULL;
#endif
}
+
+#ifdef SMALL
+ break;
+#else
if (ia->ia_type != D6_OPTION_IA_PD)
break;
-#ifndef SMALL
+
for (p = fp; p; p = fp) {
fp = strwhite(p);
if (fp) {
case IFT_PPP: /* FALLTHROUGH */
#endif
#ifdef IFT_PROPVIRTUAL
- case IFT_PROPVIRTUAL: /* FALLTHROUGH */
+ case IFT_PROPVIRTUAL:
#endif
#if defined(IFT_BRIDGE) || defined(IFT_PPP) || defined(IFT_PROPVIRTUAL)
/* Don't allow unless explicit */
ifp->name);
active = IF_INACTIVE;
}
+ __fallthrough; /* Appease gcc-7 */
/* FALLTHROUGH */
#endif
#ifdef IFT_L2VLAN