Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: simon.marchi@polymtl.ca
To: gdb-patches@sourceware.org, binutils@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>
Subject: [PATCH 1/3] bfd: fix 2 more -Wdiscarded-qualifiers errors
Date: Mon, 23 Feb 2026 08:26:36 -0500	[thread overview]
Message-ID: <20260223132805.3186869-2-simon.marchi@polymtl.ca> (raw)
In-Reply-To: <20260223132805.3186869-1-simon.marchi@polymtl.ca>

From: Simon Marchi <simon.marchi@polymtl.ca>

Change-Id: I047cd848506fc4d3dafdb901e300fe22430dddde
---
 bfd/elf32-arc.c | 2 +-
 bfd/vms-misc.c  | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index bdf96de7668f..7753872e198f 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -556,7 +556,7 @@ arc_extract_features (const char *p)
 
   for (i = 0; i < ARRAY_SIZE (bfd_feature_list); i++)
     {
-      char *t = strstr (p, bfd_feature_list[i].attr);
+      const char *t = strstr (p, bfd_feature_list[i].attr);
       unsigned l = strlen (bfd_feature_list[i].attr);
       if ((t != NULL)
 	  && (t[l] == ','
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c
index 63f627b18ed2..a3e9ad9bb136 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -499,7 +499,7 @@ char *
 vms_get_module_name (const char *filename, bool upcase)
 {
   char *fname, *fptr;
-  const char *fout;
+  const char *fout, *fslash;
 
   /* Strip VMS path.  */
   fout = strrchr (filename, ']');
@@ -511,9 +511,9 @@ vms_get_module_name (const char *filename, bool upcase)
     fout = filename;
 
   /* Strip UNIX path.  */
-  fptr = strrchr (fout, '/');
-  if (fptr != NULL)
-    fout = fptr + 1;
+  fslash = strrchr (fout, '/');
+  if (fslash != NULL)
+    fout = fslash + 1;
 
   fname = strdup (fout);
 
-- 
2.53.0


  reply	other threads:[~2026-02-23 13:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-23 13:26 [PATCH 0/3] Fix some " simon.marchi
2026-02-23 13:26 ` simon.marchi [this message]
2026-02-23 14:20   ` [PATCH 1/3] bfd: fix 2 " 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

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=20260223132805.3186869-2-simon.marchi@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