From: Katerina Kubecova Date: Tue, 25 Mar 2025 10:51:54 +0000 (+0100) Subject: lib/route.h: Explicit padding added to struct nexthop_adata. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fv3-nexthop_adata-fixup;p=thirdparty%2Fbird.git lib/route.h: Explicit padding added to struct nexthop_adata. Implicit padding caused unspecified behaviour and led to generating more mpls labels when compiled with clang. --- diff --git a/lib/route.h b/lib/route.h index 6ad4a7c7d..000c24c44 100644 --- a/lib/route.h +++ b/lib/route.h @@ -157,6 +157,7 @@ struct nexthop { /* For packing one into eattrs */ struct nexthop_adata { struct adata ad; + PADDING(unused, 0, 4); /* There is either a set of nexthops or a special destination (RTD_*) */ union { struct nexthop nh;