]> git.eshelyaron.com Git - emacs.git/commitdiff
Quieten gud.el and gdb-mi.el compilation
authorGlenn Morris <rgm@gnu.org>
Sat, 3 Mar 2018 18:36:48 +0000 (10:36 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 3 Mar 2018 18:37:11 +0000 (10:37 -0800)
* lisp/progmodes/gud.el (gud-gdb):
* lisp/progmodes/gdb-mi.el (gdb):
Suppress "unused lexical argument" warning.

lisp/progmodes/gdb-mi.el
lisp/progmodes/gud.el

index c664799ab0858dd7b7513fa0d138a574cb2a2a5c..88e34d8df9fc137554b4d5f7f03ba8e1993555b7 100644 (file)
@@ -792,7 +792,7 @@ detailed description of this mode.
   (gud-def gud-tbreak "tbreak %f:%l" "\C-t"
           "Set temporary breakpoint at current line.")
   (gud-def gud-jump
-          (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l"))
+          (progn (gud-call "tbreak %f:%l" arg) (gud-call "jump %f:%l"))
           "\C-j" "Set execution address to current line.")
 
   (gud-def gud-up     "up %p"     "<" "Up N stack frames (numeric arg).")
index 72f57695587440fb958887ebdc4b8f4f1924bd58..6aa9a7e4d4a31e79afca00b4d86221ef765e1efc 100644 (file)
@@ -378,6 +378,7 @@ we're in the GUD buffer)."
        (if (not gud-running)
         ,(if (stringp cmd)
              `(gud-call ,cmd arg)
+           ;; Unused lexical warning if cmd does not use "arg".
            cmd))))
      ,(if key `(local-set-key ,(concat "\C-c" key) ',func))
      ,(if key `(global-set-key (vconcat gud-key-prefix ,key) ',func))))
@@ -771,7 +772,7 @@ the buffer in which this command was invoked."
   (gud-def gud-cont   "cont"     "\C-r" "Continue with display.")
   (gud-def gud-finish "finish"   "\C-f" "Finish executing current function.")
   (gud-def gud-jump
-          (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l"))
+          (progn (gud-call "tbreak %f:%l" arg) (gud-call "jump %f:%l"))
           "\C-j" "Set execution address to current line.")
 
   (gud-def gud-up     "up %p"     "<" "Up N stack frames (numeric arg).")