Re: [PATCH v5 0/6] use static_assert for build error reports

2024-02-16 Thread David Marchand
On Thu, Jan 18, 2024 at 5:53 PM Stephen Hemminger wrote: > > This series fixes a couple places where expressions that could not > be evaluated as constant early in compiler passes were used. > Then converts RTE_BUILD_BUG_ON() with static_assert. > > static_assert() is more picky about the expressi

[PATCH v5 0/6] use static_assert for build error reports

2024-01-18 Thread Stephen Hemminger
This series fixes a couple places where expressions that could not be evaluated as constant early in compiler passes were used. Then converts RTE_BUILD_BUG_ON() with static_assert. static_assert() is more picky about the expression has to be a constant, which also catches some existing undefined b