* [binutils-gdb] Avoid compiler warning in dwarf-do-refresh
@ 2022-12-19 16:49 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-12-19 16:49 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0d120726bda4768b176b83c1f81ef63a5d49d881
commit 0d120726bda4768b176b83c1f81ef63a5d49d881
Author: Tom Tromey <tromey@adacore.com>
Date: Mon Dec 19 09:46:54 2022 -0700
Avoid compiler warning in dwarf-do-refresh
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.
Diff:
---
binutils/ChangeLog | 4 ++++
binutils/dwarf-mode.el | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6bd121e82ae..e7f918d3f65 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2022-12-19 Tom Tromey <tromey@adacore.com>
+
+ * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
+
2022-12-19 Nick Clifton <nickc@redhat.com>
PR 29914
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-19 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 16:49 [binutils-gdb] Avoid compiler warning in dwarf-do-refresh Tom Tromey
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).