Re: [dpdk-dev] [PATCH v3 10/24] rte_dev.h: stack declaration at top of own basic block

2018-05-13 Thread Thomas Monjalon
12/05/2018 03:59, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_dev.h:54:2: > warning: ISO C90 forbids mixed declarations and > code [-Wdeclaration-after-statement] > char buffer[vsnprintf(NULL, 0, fmt, ap) + 1]; Fixes: b974e4a40cb5 ("ethdev: make error checking macros public")

[dpdk-dev] [PATCH v3 10/24] rte_dev.h: stack declaration at top of own basic block

2018-05-11 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_dev.h:54:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] char buffer[vsnprintf(NULL, 0, fmt, ap) + 1]; Signed-off-by: Andy Green --- lib/librte_eal/common/include/rte_dev.h | 15 +-- 1 file chang