Skip to content

Commit 935438f

Browse files
committed
Fix more b-c warnings
1 parent f8b5c6e commit 935438f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

diff-hl.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ contents as they are (or would be) after applying the changes in NEW."
646646
;; TODO: debounce if a thread is already running.
647647
(let ((buf (current-buffer))
648648
(temp-buffer
649-
(if (< emacs-major-version 28)
649+
(static-if (< emacs-major-version 28)
650650
(generate-new-buffer " *temp*")
651651
(generate-new-buffer " *temp*" t))))
652652
;; Switch buffer temporarily, to "unlock" it for other threads.
@@ -1761,6 +1761,9 @@ effect."
17611761
(project-root proj)
17621762
(project-roots proj))))
17631763

1764+
;; Commands below will only work with recent enough project.el.
1765+
(declare-function project-name "project")
1766+
17641767
(defun diff-hl-set-reference-rev-in-project-internal (rev proj)
17651768
(let* ((root (diff-hl--project-root proj)))
17661769
;; newly opened files will share this value

0 commit comments

Comments
 (0)