From: Tom Tromey <tromey@adacore.com>
To: binutils@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [pushed] Avoid compiler warning in dwarf-do-refresh
Date: Mon, 19 Dec 2022 09:48:30 -0700 [thread overview]
Message-ID: <20221219164830.394274-1-tromey@adacore.com> (raw)
The Emacs 28 compiler warns about dwarf-mode.el:
Warning (comp): dwarf-mode.el:180:32: Warning: Unused lexical argument `ignore'
This is easily fixed by prepending "_" to the parameter's name.
binutils/ChangeLog
2022-12-19 Tom Tromey <tromey@adacore.com>
* dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
---
binutils/ChangeLog | 4 ++++
binutils/dwarf-mode.el | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/binutils/dwarf-mode.el b/binutils/dwarf-mode.el
index 9df875ca4fe..3c59ee136bc 100644
--- a/binutils/dwarf-mode.el
+++ b/binutils/dwarf-mode.el
@@ -177,7 +177,7 @@ A prefix argument means expand all children."
;; Run objdump and insert the contents into the buffer. The arguments
;; are the way they are because this is also called as a
;; revert-buffer-function.
-(defun dwarf-do-refresh (&rest ignore)
+(defun dwarf-do-refresh (&rest _ignore)
(dwarf--check-running)
(let ((inhibit-read-only t))
(dwarf--invoke (point-min) (point-max)
--
2.38.1
reply other threads:[~2022-12-19 16:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20221219164830.394274-1-tromey@adacore.com \
--to=tromey@adacore.com \
--cc=binutils@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).