summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-defs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2020-11-09 21:19:19 +0000
committerAlan Mackenzie <acm@muc.de>2020-11-09 21:19:19 +0000
commitae3904bb5df1136cd6e8fb9d53cc2e081cf2fd01 (patch)
treeac25a50676f1a6430d44bebbbf4a32503dd9c089 /lisp/progmodes/cc-defs.el
parent8ece715af613d238a86092abf62db57ded6c55b3 (diff)
downloademacs-ae3904bb5df1136cd6e8fb9d53cc2e081cf2fd01.tar.gz
emacs-ae3904bb5df1136cd6e8fb9d53cc2e081cf2fd01.tar.bz2
emacs-ae3904bb5df1136cd6e8fb9d53cc2e081cf2fd01.zip
CC Mode: fix many compiler warnings which would appear with lexical binding
* lisp/progmodes/cc-align.el (three places) prefix langelem with a _. * lisp/progmodes/cc-{cmds,engine}.el: Remove superfluous local variables. * lisp/progmodes/cc-defs.el (c-will-be-unescaped): Remove unused parameter end. * lisp/progmodes/cc-engine.el (c-looking-at-decl-block): Remove unused parameter containing-sexp. (c-looking-at-special-brace-list); Remove unused parameter lim. (c-add-class-syntax): Remove unused parameter paren-state.
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r--lisp/progmodes/cc-defs.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index 77e263f1aad..c82b3a34e33 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -434,9 +434,8 @@ to it is returned. This function does not modify the point or the mark."
(setq count (+ count (skip-chars-backward "\\\\"))))
(not (zerop (logand count 1))))))
-(defmacro c-will-be-unescaped (beg end)
- ;; Would the character after END be unescaped after the removal of (BEG END)?
- ;; This is regardless of its current status. It is assumed that (>= POS END).
+(defmacro c-will-be-unescaped (beg)
+ ;; Would the character after BEG be unescaped?
`(save-excursion
(let (count)
(goto-char ,beg)