Skip to content

Commit 3bb1e40

Browse files
committed
Silence byte compiler.
1 parent 9b091a3 commit 3bb1e40

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

drupal-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
(require 'php-mode)
3737
(require 'format-spec)
3838

39-
(eval-when-compile
40-
(require 'css-mode))
39+
;; Silence byte compiler.
40+
(defvar css-indent-level)
4141

4242

4343

drupal/flycheck.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525

2626
;;; Code:
2727

28-
(eval-when-compile
29-
(require 'flycheck))
30-
28+
(require 'flycheck)
3129
(require 'drupal/phpcs)
3230

3331
(defcustom drupal/flycheck-phpcs-js-and-css t
@@ -47,7 +45,8 @@
4745

4846
;; Flycheck will also highlight trailing whitespace as an
4947
;; error so no need to highlight it twice.
50-
(drupal/phpcs-dont-show-trailing-whitespace)))
48+
(when (fboundp 'drupal/phpcs-dont-show-trailing-whitespace)
49+
(drupal/phpcs-dont-show-trailing-whitespace))))
5150

5251
(add-hook 'drupal-mode-hook #'drupal/flycheck-hook)
5352

drupal/flymake-phpcs.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
(define-obsolete-variable-alias 'drupal/flymake-phpcs-dont-show-trailing-whitespace 'drupal/phpcs-dont-show-trailing-whitespace)
3333
(require 'drupal/phpcs)
3434

35+
;; Silence byte compiler.
36+
(defvar flymake-phpcs-location)
37+
3538
;; Only available when `flymake' is the fork from
3639
;; https://github.com/illusori/emacs-flymake.
3740
(when (or (boundp 'flymake-run-in-place)
@@ -76,7 +79,8 @@ file (and thus on the remote machine), or in the same place as
7679

7780
;; Flymake-phpcs will also highlight trailing whitespace as an
7881
;; error so no need to highlight it twice.
79-
(drupal/phpcs-dont-show-trailing-whitespace)
82+
(when (fboundp 'drupal/phpcs-dont-show-trailing-whitespace)
83+
(drupal/phpcs-dont-show-trailing-whitespace))
8084

8185
;; This is a php-mode file so add the extension to a buffer locale
8286
;; version of `flymake-allowed-file-name-masks' and make

0 commit comments

Comments
 (0)