Thomas Monjalon 43e73483a4 devtools: forbid variable declaration inside for
Some compilers raise an error when declaring a variable
in the middle of a function. This is a C99 allowance.
Even if DPDK switches globally to C99 or C11 standard,
the coding rules are for declarations at the beginning
of a block:
http://doc.dpdk.org/guides/contributing/coding_style.html#local-variables

This coding style is enforced by adding a check of
the common patterns like "for (int i;"

The occurrences of the checked pattern are fixed:
	'for *(\(char\|u\?int\|unsigned\|s\?size_t\)'
In the file dpaa2_sparser.c, the fix is to remove the unused macros.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
2020-07-03 10:04:15 +02:00
..
2020-05-05 23:46:21 +02:00
2019-11-15 11:36:27 +01:00
2019-07-19 14:17:11 +02:00
2020-05-05 23:46:21 +02:00
2020-02-05 15:29:59 +01:00
2019-05-04 23:39:23 +02:00
2020-05-18 18:14:21 +02:00
2018-12-19 01:25:56 +01:00
2020-04-21 12:52:55 +02:00
2019-01-20 13:08:50 +01:00