|WARNING| pw150894 [PATCH] eal: force evaluation of RTE_ASSERT expression
checkpatch at dpdk.org
checkpatch at dpdk.org
Tue Feb 4 17:55:19 CET 2025
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/150894
_coding style issues_
WARNING:TYPO_SPELLING: 'evaluted' may be misspelled - perhaps 'evaluated'?
#105: FILE: lib/eal/include/rte_debug.h:46:
+/* RTE_ASSERT is optional checks that only get evaluted if RTE_ENABLE_ASSERT is enabled. */
WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#110: FILE: lib/eal/include/rte_debug.h:50:
+#define RTE_ASSERT(exp) \
+ /* Evaluate expression to trigger warnings */ \
+ do { \
+ (void)sizeof((exp) ? 1 : 0); \
+ } while (0)
total: 0 errors, 2 warnings, 18 lines checked
More information about the test-report
mailing list