On Fri, 15 Dec 2023 17:26:32 +0000 Euan Bourke <euan.bou...@intel.com> wrote:
> Update to the l3fwd-power example application to call the arg parser > library for its 'combined core string parser' instead of implementing its > own corelist parser. The default_type passed into the function call is > a corelist. > > Signed-off-by: Euan Bourke <euan.bou...@intel.com> > Acked-by: David Hunt <david.h...@intel.com> > --- Compile test failed with older Gcc?? *Build Failed #1: OS: CentOS79-64 Target: x86_64-native-linuxapp-gcc FAILED: lib/librte_arg_parser.a.p/arg_parser_arg_parser.c.o gcc -Ilib/librte_arg_parser.a.p -Ilib -I../lib -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/arg_parser -I../lib/arg_parser -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.arg_parser -MD -MQ lib/librte_arg_parser.a.p/arg_parser_arg_parser.c.o -MF lib/librte_arg_parser.a.p/arg_parser_arg_parser.c.o.d -o lib/librte_arg_parser.a.p/arg_parser_arg_parser.c.o -c ../lib/arg_parser/arg_parser.c ../lib/arg_parser/arg_parser.c: In function ‘rte_arg_parse_corelist’: ../lib/arg_parser/arg_parser.c:76:9: error: missing braces around initializer [-Werror=missing-braces] struct core_bits mask = {0}; ^ ../lib/arg_parser/arg_parser.c:76:9: error: (near initialization for ‘mask.bits’) [-Werror=missing-braces] ../lib/arg_parser/arg_parser.c: In function ‘rte_arg_parse_coremask’: ../lib/arg_parser/arg_parser.c:125:9: error: missing braces around initializer [-Werror=missing-braces] struct core_bits mask = {0}; ^ ../lib/arg_parser/arg_parser.c:125:9: error: (near initialization for ‘mask.bits’) [-Werror=missing-braces] cc1: all warnings being treated as errors [2/2834] Compiling C object lib/librte_log.a.p/log_log_linux.c.o [3/2834] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_class.c.o [4/2834] Compiling C object lib/librte_kvargs.a.p/kvargs_rte_kvargs.c.o [5/2834] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry_data.c.o [6/2834] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry_legacy.c.o [7/2834] Compiling C object lib/librte_log.a.p/log_log.c.o [8/2834] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_bus.c.o [9/2834] Compiling C object lib/librte_mempool.a.p/mempool_rte_mempool_ops_default.c.o [10/2834] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry.c.o ninja: build stopped