[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 910d170: * lisp/progmodes/cc-engine.el: Silence min
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 910d170: * lisp/progmodes/cc-engine.el: Silence minor compiler warnings |
Date: |
Tue, 30 Apr 2019 14:56:33 -0400 (EDT) |
branch: master
commit 910d170771ac74ab76d6dcb2dda3f3167e01b705
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/progmodes/cc-engine.el: Silence minor compiler warnings
(c-restricted-<>-arglists, c-parse-and-markup-<>-arglists):
Move declaration before first use.
(c-after-change-unmark-raw-strings): Remove unused var `found-end`.
---
lisp/progmodes/cc-engine.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 5d1b4bb..a0459b9 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -1812,7 +1812,7 @@ comment at the start of cc-engine.el for more info."
(setcar c-sws-lit-limits (match-beginning 1))
(setq c-sws-lit-limits (cons (match-beginning 1) (match-end 1)))))))
-(defun c-invalidate-sws-region-after-del (beg end old-len)
+(defun c-invalidate-sws-region-after-del (beg end _old-len)
;; Text has been deleted, OLD-LEN characters of it starting from position
;; BEG. END is typically eq to BEG. Should there have been a comment or
;; CPP construct open at END before the deletion, check whether this
@@ -5475,6 +5475,9 @@ comment at the start of cc-engine.el for more info."
(setq c-bs-cache-limit
(min c-bs-cache-limit pos)))
+(defvar c-restricted-<>-arglists) ;FIXME: Move definition here?
+(defvar c-parse-and-markup-<>-arglists) ;FIXME: Move definition here?
+
(defun c-update-brace-stack (stack from to)
;; Given a brace-stack which has the value STACK at position FROM, update it
;; to its value at position TO, where TO is after (or equal to) FROM.
@@ -6488,9 +6491,6 @@ comment at the start of cc-engine.el for more info."
(c-clear-<>-pair-props)
(forward-char)))))))
-(defvar c-restricted-<>-arglists) ;FIXME: Move definition here?
-(defvar c-parse-and-markup-<>-arglists) ;FIXME: Move definition here?
-
(defun c-restore-<>-properties (_beg _end _old-len)
;; This function is called as an after-change function. It restores the
;; category/syntax-table properties on template/generic <..> pairs between
@@ -6927,7 +6927,7 @@ comment at the start of cc-engine.el for more info."
;; This functions is called as an after-change function by virtue of its
;; membership of the C++ value of `c-before-font-lock-functions'.
;; (when (< beg end)
- (c-save-buffer-state (found eoll state id found-beg found-end)
+ (c-save-buffer-state (found eoll state id found-beg)
;; Has an inserted " swallowed up a R"(, turning it into "...R"(?
(goto-char end)
(setq eoll (c-point 'eoll))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 910d170: * lisp/progmodes/cc-engine.el: Silence minor compiler warnings,
Stefan Monnier <=