From: Simon Marchi <simon.marchi@polymtl.ca>
To: gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH 3/3] sim: fix a few -Wdiscarded-qualifiers errors
Date: Thu, 26 Feb 2026 13:21:40 -0500 [thread overview]
Message-ID: <93d48fa4-e278-432b-a3c9-75cdd1ad4d48@polymtl.ca> (raw)
In-Reply-To: <20260223132805.3186869-4-simon.marchi@polymtl.ca>
On 2/23/26 8:26 AM, simon.marchi@polymtl.ca wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
>
> Change-Id: I5caaf741a6d3835d593e62c3a567171c09d6241c
> ---
> sim/common/sim-options.c | 2 +-
> sim/cr16/simops.c | 2 +-
> sim/d10v/simops.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
> index c0ad4c790839..8c72b2bc3786 100644
> --- a/sim/common/sim-options.c
> +++ b/sim/common/sim-options.c
> @@ -207,7 +207,7 @@ static SIM_RC
> env_set (SIM_DESC sd, const char *arg)
> {
> int i, varlen;
> - char *eq;
> + const char *eq;
> char **envp;
>
> if (STATE_PROG_ENVP (sd) == NULL)
> diff --git a/sim/cr16/simops.c b/sim/cr16/simops.c
> index f26bccf870d1..8e1808401549 100644
> --- a/sim/cr16/simops.c
> +++ b/sim/cr16/simops.c
> @@ -296,7 +296,7 @@ trace_input_func (SIM_DESC sd, const char *name, enum op_types in1, enum op_type
> }
> else if (filename)
> {
> - char *q = strrchr (filename, '/');
> + const char *q = strrchr (filename, '/');
> sprintf (p, "%s ", (q) ? q+1 : filename);
> p += strlen (p);
> }
> diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c
> index bc7806cc278a..0ad85879bade 100644
> --- a/sim/d10v/simops.c
> +++ b/sim/d10v/simops.c
> @@ -232,7 +232,7 @@ trace_input_func (SIM_DESC sd, const char *name, enum op_types in1, enum op_type
> }
> else if (filename)
> {
> - char *q = strrchr (filename, '/');
> + const char *q = strrchr (filename, '/');
> sprintf (p, "%s ", (q) ? q+1 : filename);
> p += strlen (p);
> }
> --
> 2.53.0
>
I went ahead and pushed this one, since the changes are obvious.
Patch 2/3 is no longer necessary, since Keith pushed his version.
Simon
prev parent reply other threads:[~2026-02-26 18:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 13:26 [PATCH 0/3] Fix some more " simon.marchi
2026-02-23 13:26 ` [PATCH 1/3] bfd: fix 2 " simon.marchi
2026-02-23 14:20 ` Jan Beulich
2026-02-24 15:36 ` Simon Marchi
2026-02-23 13:26 ` [PATCH 2/3] opcodes: fix a few " simon.marchi
2026-02-23 14:27 ` Jan Beulich
2026-02-24 1:14 ` Alan Modra
2026-02-24 14:58 ` Keith Seitz
2026-02-24 15:46 ` Simon Marchi
2026-02-24 17:17 ` Keith Seitz
2026-02-24 22:57 ` Alan Modra
2026-02-25 14:50 ` Keith Seitz
2026-02-23 13:26 ` [PATCH 3/3] sim: " simon.marchi
2026-02-26 18:21 ` Simon Marchi [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=93d48fa4-e278-432b-a3c9-75cdd1ad4d48@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.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