Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-02-20 Thread Thomas Monjalon
10/02/2023 12:26, Olivier Matz: > Hi, > > Sorry for the late reply. > > On Thu, Jan 19, 2023 at 08:59:10AM +, Bruce Richardson wrote: > > On Wed, Jan 18, 2023 at 06:53:33PM +, Ferruh Yigit wrote: > > > On 1/18/2023 4:11 PM, Bruce Richardson wrote: > > > > When building the example without

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-02-10 Thread Olivier Matz
Hi, Sorry for the late reply. On Thu, Jan 19, 2023 at 08:59:10AM +, Bruce Richardson wrote: > On Wed, Jan 18, 2023 at 06:53:33PM +, Ferruh Yigit wrote: > > On 1/18/2023 4:11 PM, Bruce Richardson wrote: > > > When building the example without libbsd and using the DPDK-provided > > > strlcp

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Bruce Richardson
On Thu, Jan 19, 2023 at 08:44:41AM -0800, Stephen Hemminger wrote: > On Thu, 19 Jan 2023 08:59:10 + > Bruce Richardson wrote: > > > > > struct object { > > > > SLIST_ENTRY(object) next; > > > > > > I confirm it solves the build warning, but what about to get rid of > > > `OBJ_NAME

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Stephen Hemminger
On Thu, 19 Jan 2023 08:59:10 + Bruce Richardson wrote: > > > struct object { > > > SLIST_ENTRY(object) next; > > > > I confirm it solves the build warning, but what about to get rid of > > `OBJ_NAME_LEN_MAX` completely if the intentions is to make size same as > > cmdline library array:

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Bruce Richardson
On Wed, Jan 18, 2023 at 06:53:33PM +, Ferruh Yigit wrote: > On 1/18/2023 4:11 PM, Bruce Richardson wrote: > > When building the example without libbsd and using the DPDK-provided > > strlcpy function, a compiler warning is emitted by GCC 12 about the copy > > of the parsed string into the resul

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-18 Thread Ferruh Yigit
On 1/18/2023 4:11 PM, Bruce Richardson wrote: > When building the example without libbsd and using the DPDK-provided > strlcpy function, a compiler warning is emitted by GCC 12 about the copy > of the parsed string into the resulting object. This is because the > source from cmdline library is 128