hash: move stack declaration at top of CRC32c function
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 02:00:32 +0000 (10:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:33 +0000 (22:45 +0200)
commitf1eb05a1dc64e17bb9d9b6ad29b78f181aae36b8
treec79d2907d9b9fe4f8d367827b226db2885111ef3
parentb90406b9f7340466cbda287cd7454fae68868348
hash: move stack declaration at top of CRC32c function

In function 'crc32c_2words':
rte_hash_crc.h:347:2:
warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
  uint32_t crc, term1, term2;

Fixes: d983cf41698f ("hash: add software CRC32 implementation")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_hash/rte_hash_crc.h