RE: [PATCH v2] net/mlx5: fix build with clang 14

2022-06-15 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Ali Alnubani > Sent: Wednesday, May 11, 2022 7:41 PM > To: dev@dpdk.org > Cc: Michael Baum ; sta...@dpdk.org > Subject: [PATCH v2] net/mlx5: fix build with clang 14 > > Use fgets instead of fscanf to resolve the following war

Re: [PATCH v2] net/mlx5: fix build with clang 14

2022-06-15 Thread David Marchand
On Wed, Jun 15, 2022 at 10:17 AM Thomas Monjalon wrote: > > 11/05/2022 18:41, Ali Alnubani: > > Use fgets instead of fscanf to resolve the following warning > > reported by clang 14.0.0 in Fedora 37 (Rawhide): > > > > drivers/net/mlx5/linux/mlx5_ethdev_os.c:1137:52: error: > > 'fscanf' may overf

RE: [PATCH v2] net/mlx5: fix build with clang 14

2022-06-15 Thread Slava Ovsiienko
> -Original Message- > From: Ali Alnubani > Sent: Wednesday, May 11, 2022 19:41 > To: dev@dpdk.org > Cc: Michael Baum ; sta...@dpdk.org > Subject: [PATCH v2] net/mlx5: fix build with clang 14 > > Use fgets instead of fscanf to resolve the following warning repor

Re: [PATCH v2] net/mlx5: fix build with clang 14

2022-06-15 Thread Thomas Monjalon
11/05/2022 18:41, Ali Alnubani: > Use fgets instead of fscanf to resolve the following warning > reported by clang 14.0.0 in Fedora 37 (Rawhide): > > drivers/net/mlx5/linux/mlx5_ethdev_os.c:1137:52: error: > 'fscanf' may overflow; destination buffer in argument 3 has size 16, > but the corresp

[PATCH v2] net/mlx5: fix build with clang 14

2022-05-11 Thread Ali Alnubani
Use fgets instead of fscanf to resolve the following warning reported by clang 14.0.0 in Fedora 37 (Rawhide): drivers/net/mlx5/linux/mlx5_ethdev_os.c:1137:52: error: 'fscanf' may overflow; destination buffer in argument 3 has size 16, but the corresponding specifier may require size 17 [-Wer