]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Avoid compiler warning in dwarf-do-refresh
authorTom Tromey <tromey@adacore.com>
Mon, 19 Dec 2022 16:46:54 +0000 (09:46 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 19 Dec 2022 16:46:54 +0000 (09:46 -0700)
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
binutils/dwarf-mode.el

index 6bd121e82ae0e69d76966564f9af9f0ea29068b3..e7f918d3f651c95e1aa6b2cc8294979946824a4e 100644 (file)
@@ -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
index 9df875ca4fe8526e680698339d55e208afea1ed6..3c59ee136bc34ab4e51010ec572bded99d2adfb0 100644 (file)
@@ -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)