[PATCH v2] eal: force compilation of RTE_ASSERT expression
Thomas Monjalon
thomas at monjalon.net
Tue Jun 10 00:42:35 CEST 2025
04/02/2025 20:46, Stephen Hemminger:
> Even if RTE_ENABLE_ASSERT is not enabled, the expression used should
> still be checked for compiler warnings. Use sizeof()
> and ternary operator in same manner as the assert() macro to
> cause the expression to be evaluated but not generate code.
>
> This was motivated by detection of problems in a driver submission
> that was not detected until compiled with non default flags.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Applied, thanks.
More information about the dev
mailing list