test/hash: fix build
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Fri, 26 Oct 2018 21:43:03 +0000 (16:43 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Nov 2018 02:20:26 +0000 (03:20 +0100)
commit57ed574e263444928b793fff0d287121112fba84
treea8c0382ea2306358a690c030ccc28c3862eeaaaf
parentf5a09cf019cf2f1a655c1dc7288e0595b36a13c4
test/hash: fix build

Enable print_key_info() function compilation always.

Compilation error message:
'test_hash.c: In function ‘print_key_info’:
test_hash.c:90:15: error: cast discards ‘const’ qualifier from pointer
target type [-Werror=cast-qual]
  uint8_t *p = (uint8_t *)key;
               ^
cc1: all warnings being treated as errors'

Fixes: af75078fece36 ("first public release")
Cc: stable@dpdk.org
Suggested-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
test/test/test_hash.c