Re: [dpdk-dev] [PATCH] eal: fix unused-but-set-variable error

2021-11-04 Thread David Marchand
On Fri, Oct 29, 2021 at 8:48 PM David Marchand wrote: > > On Fri, Oct 29, 2021 at 7:17 PM Jim Harris wrote: > > > > clang-13 rightfully complains that the total_mem > > variable in eal_parse_socket_arg is set but not > > used, since the final accumulated total_mem > > result isn't used anywhere.

Re: [dpdk-dev] [PATCH] eal: fix unused-but-set-variable error

2021-10-29 Thread David Marchand
On Fri, Oct 29, 2021 at 7:17 PM Jim Harris wrote: > > clang-13 rightfully complains that the total_mem > variable in eal_parse_socket_arg is set but not > used, since the final accumulated total_mem > result isn't used anywhere. So just remove the > total_mem variable. > It was left behind by cha

[dpdk-dev] [PATCH] eal: fix unused-but-set-variable error

2021-10-29 Thread Jim Harris
clang-13 rightfully complains that the total_mem variable in eal_parse_socket_arg is set but not used, since the final accumulated total_mem result isn't used anywhere. So just remove the total_mem variable. Signed-off-by: Jim Harris --- lib/eal/linux/eal.c | 2 -- 1 file changed, 2 deletions(-)