From: Radu Nicolau <radu.nicolau@intel.com>
To: Kevin Traynor <ktraynor@redhat.com>, <dev@dpdk.org>
Cc: <stable@dpdk.org>, Akhil Goyal <gakhil@marvell.com>
Subject: Re: [PATCH] examples/ipsec-secgw: fix discarded-qualifers warnings
Date: Mon, 16 Mar 2026 10:12:16 +0000 [thread overview]
Message-ID: <c67fa3ed-a41f-4a92-a39a-1e7ca2a9da1f@intel.com> (raw)
In-Reply-To: <20260313103523.1094309-1-ktraynor@redhat.com>
On 13-Mar-26 10:35 AM, Kevin Traynor wrote:
> glibc 2.42 has const-preserving functions.
>
> This leads to warnings when there is a const argument
> and an assignment to a non-const variable.
>
> Example with GCC 16.0.1 and glibc 2.43 on Fedora Rawhide (F45).
>
> /examples/ipsec-secgw/parser.c: In function ‘parse_ipv4_addr’:
> ../examples/ipsec-secgw/parser.c:53:13:
> warning: assignment discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
> 53 | pch = strchr(token, '/');
> | ^
>
> Cc: stable@dpdk.org
>
> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
> ---
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
next prev parent reply other threads:[~2026-03-16 10:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 10:35 [PATCH] examples/ipsec-secgw: fix discarded-qualifers warnings Kevin Traynor
2026-03-16 10:12 ` Radu Nicolau [this message]
2026-03-17 16:15 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c67fa3ed-a41f-4a92-a39a-1e7ca2a9da1f@intel.com \
--to=radu.nicolau@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=ktraynor@redhat.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox