|WARNING| pw150902 [PATCH v2] eal: force compilation of RTE_ASSERT expression

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Feb 4 20:48:08 CET 2025


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/150902

_coding style issues_


WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#119: FILE: lib/eal/include/rte_debug.h:54:
+#define RTE_ASSERT(exp)	do {		\
+	(void)sizeof((exp) ? 1 : 0);	\
+} while (0)

total: 0 errors, 1 warnings, 17 lines checked


More information about the test-report mailing list