31/07/2018 18:40, Reshma Pattan:
> From: Naga Suresh Somarowthu <[email protected]>
> 
> Unit Test Cases added for latencystats library.
> 
> Signed-off-by: Naga Suresh Somarowthu <[email protected]>
> Reviewed-by: Reshma Pattan <[email protected]>
> ---

Compilation error with clang:

> +     struct rte_metric_name names[NUM_STATS] = { 0 };

test_latencystats.c:73:46: fatal error:
suggest braces around initialization of subobject [-Wmissing-braces]

> +     struct rte_metric_name wrongnames[NUM_STATS - 2] = { 0 };

Usually, it is recommended to use memset for initializations of structs.


Reply via email to