public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Kevin Traynor <ktraynor@redhat.com>
Cc: dev@dpdk.org, stable@dpdk.org, Akhil Goyal <gakhil@marvell.com>,
	Radu Nicolau <radu.nicolau@intel.com>
Subject: Re: [PATCH] examples/ipsec-secgw: fix discarded-qualifers warnings
Date: Tue, 17 Mar 2026 17:15:04 +0100	[thread overview]
Message-ID: <1828480.X513TT2pbd@thomas> (raw)
In-Reply-To: <c67fa3ed-a41f-4a92-a39a-1e7ca2a9da1f@intel.com>

16/03/2026 11:12, Radu Nicolau:
> 
> On 13-Mar-26 10:35 AM, Kevin Traynor wrote:
> > glibc 2.42 has const-preserving functions.

It is in glibc 2.43.

> >
> > 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>

Applied, thanks.



      reply	other threads:[~2026-03-17 16:15 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
2026-03-17 16:15   ` Thomas Monjalon [this message]

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=1828480.X513TT2pbd@thomas \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=ktraynor@redhat.com \
    --cc=radu.nicolau@intel.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