[dpdk-dev] [PATCH v3] test/hash: solve unit test hash compilation error

Thomas Monjalon thomas at monjalon.net
Tue Nov 6 03:19:47 CET 2018


26/10/2018 23:43, Dharmik Thakkar:
> 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 at dpdk.org
> 
> Suggested-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Signed-off-by: Dharmik Thakkar <dharmik.thakkar at arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Gavin Hu <gavin.hu at arm.com>

Applied, thanks





More information about the dev mailing list