Re: [PATCH v2] eal: force compilation of RTE_ASSERT expression

2025-06-09 Thread Thomas Monjalon
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 w

[PATCH v2] eal: force compilation of RTE_ASSERT expression

2025-02-04 Thread 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