> From: Thomas Monjalon [mailto:tho...@monjalon.net]
> Sent: Thursday, 17 October 2024 22.44
> 
> 13/10/2024 10:35, Morten Brørup:
> > +static_assert(sizeof(struct rte_ether_addr) == 6,
> > +           "sizeof(struct rte_ether_addr) == 6");
> > +static_assert(alignof(struct rte_ether_addr) == 2,
> > +           "alignof(struct rte_ether_addr) == 2");
> 
> Instead of repeating the condition twice,
> it would be simpler to use RTE_BUILD_BUG_ON

RTE_BUILD_BUG_ON can only be used in code blocks, so it would need to be 
wrapped in some dummy function.

Reply via email to