Re: [dpdk-dev] [PATCH v3 07/24] rte_spinlock.h: stack declarations before code

2018-05-13 Thread Thomas Monjalon
12/05/2018 03:59, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_spinlock.h: > In function 'rte_try_tm': > /projects/lagopus/src/dpdk/build/include/rte_spinlock.h:82:2: > warning: ISO C90 forbids mixed declarations and code > [-Wdeclaration-after-statement] > int retries = RTE_RTM_MAX

[dpdk-dev] [PATCH v3 07/24] rte_spinlock.h: stack declarations before code

2018-05-11 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_spinlock.h: In function 'rte_try_tm': /projects/lagopus/src/dpdk/build/include/rte_spinlock.h:82:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int retries = RTE_RTM_MAX_RETRIES; Signed-off-by: Andy Green ---