From 81c599eb53b6abba47e0d4eb9057e676f07be82b Mon Sep 17 00:00:00 2001 From: Katerina Kubecova Date: Tue, 25 Mar 2025 11:51:54 +0100 Subject: [PATCH] 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. --- lib/route.h | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2