RE: [PATCH v2] net/mlx5: fix build with GCC 12 and ASan

2023-03-23 Thread Raslan Darawsheh
Hi, > -Original Message- > From: David Marchand > Sent: Wednesday, March 22, 2023 7:06 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Matan Azrad ; Slava Ovsiienko > > Subject: [PATCH v2] net/mlx5: fix build with GCC 12 and ASan > > Building with gcc 12 a

[PATCH v2] net/mlx5: fix build with GCC 12 and ASan

2023-03-22 Thread David Marchand
Building with gcc 12 and ASan raises this warning: ../drivers/net/mlx5/mlx5_txpp.c: In function ‘mlx5_txpp_xstats_get_names’: ../drivers/net/mlx5/mlx5_txpp.c:1066:25: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation] 1066 | s