With latest glibc (Fedora Rawhide):
../drivers/bus/ifpga/ifpga_bus.c: In function 'ifpga_parse':
../drivers/bus/ifpga/ifpga_bus.c:479:12: warning: assignment discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
479 | c1 = strchr(name, '|');
| ^
Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
Cc: [email protected]
Signed-off-by: David Marchand <[email protected]>
---
drivers/bus/ifpga/ifpga_bus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c
index ca9e49f548..fdce1f6b1f 100644
--- a/drivers/bus/ifpga/ifpga_bus.c
+++ b/drivers/bus/ifpga/ifpga_bus.c
@@ -468,8 +468,8 @@ ifpga_parse(const char *name, void *addr)
int *out = addr;
struct rte_rawdev *rawdev = NULL;
char rawdev_name[RTE_RAWDEV_NAME_MAX_LEN];
- char *c1 = NULL;
- char *c2 = NULL;
+ const char *c1 = NULL;
+ const char *c2 = NULL;
int port = IFPGA_BUS_DEV_PORT_MAX;
char str_port[8];
int str_port_len = 0;
--
2.51.1