aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-03-03 10:36:48 -0800
committerGlenn Morris2018-03-03 10:37:11 -0800
commitb3300c3ec80a40a6fe34a8721b79f273d519f00e (patch)
tree54cad8d5903cf3771c1cfa982acb651595b9aa13
parent282a68189a4721d6764126d435fc7cf57fad6440 (diff)
downloademacs-b3300c3ec80a40a6fe34a8721b79f273d519f00e.tar.gz
emacs-b3300c3ec80a40a6fe34a8721b79f273d519f00e.zip
Quieten gud.el and gdb-mi.el compilation
* lisp/progmodes/gud.el (gud-gdb): * lisp/progmodes/gdb-mi.el (gdb): Suppress "unused lexical argument" warning.
-rw-r--r--lisp/progmodes/gdb-mi.el2
-rw-r--r--lisp/progmodes/gud.el3
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index c664799ab08..88e34d8df9f 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -792,7 +792,7 @@ detailed description of this mode.
792 (gud-def gud-tbreak "tbreak %f:%l" "\C-t" 792 (gud-def gud-tbreak "tbreak %f:%l" "\C-t"
793 "Set temporary breakpoint at current line.") 793 "Set temporary breakpoint at current line.")
794 (gud-def gud-jump 794 (gud-def gud-jump
795 (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l")) 795 (progn (gud-call "tbreak %f:%l" arg) (gud-call "jump %f:%l"))
796 "\C-j" "Set execution address to current line.") 796 "\C-j" "Set execution address to current line.")
797 797
798 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).") 798 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).")
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 72f57695587..6aa9a7e4d4a 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -378,6 +378,7 @@ we're in the GUD buffer)."
378 (if (not gud-running) 378 (if (not gud-running)
379 ,(if (stringp cmd) 379 ,(if (stringp cmd)
380 `(gud-call ,cmd arg) 380 `(gud-call ,cmd arg)
381 ;; Unused lexical warning if cmd does not use "arg".
381 cmd)))) 382 cmd))))
382 ,(if key `(local-set-key ,(concat "\C-c" key) ',func)) 383 ,(if key `(local-set-key ,(concat "\C-c" key) ',func))
383 ,(if key `(global-set-key (vconcat gud-key-prefix ,key) ',func)))) 384 ,(if key `(global-set-key (vconcat gud-key-prefix ,key) ',func))))
@@ -771,7 +772,7 @@ the buffer in which this command was invoked."
771 (gud-def gud-cont "cont" "\C-r" "Continue with display.") 772 (gud-def gud-cont "cont" "\C-r" "Continue with display.")
772 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.") 773 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.")
773 (gud-def gud-jump 774 (gud-def gud-jump
774 (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l")) 775 (progn (gud-call "tbreak %f:%l" arg) (gud-call "jump %f:%l"))
775 "\C-j" "Set execution address to current line.") 776 "\C-j" "Set execution address to current line.")
776 777
777 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).") 778 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).")