Re: [RFC] ethdev: convert string initialization

2024-10-04 Thread Ferruh Yigit
On 10/4/2024 4:17 PM, Stephen Hemminger wrote: > On Thu, 1 Aug 2024 02:27:22 -0700 > Ferruh Yigit wrote: > >> gcc 15 experimental [1], with -Wextra flag, gives warning in variable >> initialization as string [2]. >> >> The warning has a point when initialized variable is intended to use as >> str

Re: [RFC] ethdev: convert string initialization

2024-10-04 Thread Stephen Hemminger
On Thu, 1 Aug 2024 02:27:22 -0700 Ferruh Yigit wrote: > gcc 15 experimental [1], with -Wextra flag, gives warning in variable > initialization as string [2]. > > The warning has a point when initialized variable is intended to use as > string, since assignment is missing the required null termin

Re: [RFC] ethdev: convert string initialization

2024-08-05 Thread Tyler Retzlaff
On Thu, Aug 01, 2024 at 02:27:22AM -0700, Ferruh Yigit wrote: > gcc 15 experimental [1], with -Wextra flag, gives warning in variable > initialization as string [2]. > > The warning has a point when initialized variable is intended to use as > string, since assignment is missing the required null

RE: [RFC] ethdev: convert string initialization

2024-08-01 Thread Morten Brørup
> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > Sent: Thursday, 1 August 2024 14.43 > > On 8/1/2024 12:29 PM, Morten Brørup wrote: > >> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > >> Sent: Thursday, 1 August 2024 11.27 > >> > >> gcc 15 experimental [1], with -Wextra flag, gives warning

Re: [RFC] ethdev: convert string initialization

2024-08-01 Thread Ferruh Yigit
On 8/1/2024 12:29 PM, Morten Brørup wrote: >> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] >> Sent: Thursday, 1 August 2024 11.27 >> >> gcc 15 experimental [1], with -Wextra flag, gives warning in variable >> initialization as string [2]. >> >> The warning has a point when initialized variable

RE: [RFC] ethdev: convert string initialization

2024-08-01 Thread Morten Brørup
> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > Sent: Thursday, 1 August 2024 11.27 > > gcc 15 experimental [1], with -Wextra flag, gives warning in variable > initialization as string [2]. > > The warning has a point when initialized variable is intended to use as > string, since assignment

Re: [RFC] ethdev: convert string initialization

2024-08-01 Thread Bruce Richardson
On Thu, Aug 01, 2024 at 02:27:22AM -0700, Ferruh Yigit wrote: > gcc 15 experimental [1], with -Wextra flag, gives warning in variable > initialization as string [2]. > > The warning has a point when initialized variable is intended to use as > string, since assignment is missing the required null

[RFC] ethdev: convert string initialization

2024-08-01 Thread Ferruh Yigit
gcc 15 experimental [1], with -Wextra flag, gives warning in variable initialization as string [2]. The warning has a point when initialized variable is intended to use as string, since assignment is missing the required null terminator for this case. But warning is useless for our usecase. I don