[PATCH 7/7] app/procinfo: fix const pointer in collectd format
fengchengwen
fengchengwen at huawei.com
Sat Nov 29 01:35:01 CET 2025
Reviewed-by: Chengwen Feng <fengchengwen at huawei.com>
On 11/28/2025 9:56 PM, David Marchand wrote:
> With latest glibc (Fedora Rawhide):
> ../app/proc-info/main.c: In function 'collectd_resolve_cnt_type':
> ../app/proc-info/main.c:689:26: warning: initialization discards
> 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
> 689 | char *type_end = strrchr(cnt_name, '_');
> | ^~~~~~~
>
> Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
More information about the dev
mailing list