Skip to content

Commit 8212f41

Browse files
authored
Merge pull request #683 from emacs-php/fix/unused-params-mark-underscore
Suppress warnings unused lexical argument
2 parents 8684abd + a0dd5fb commit 8212f41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lisp/php-mode.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ but only if the setting is enabled"
613613
(beginning-of-line)
614614
(if (looking-at-p "\\s-*->") '+ nil))))
615615

616-
(defun php-c-looking-at-or-maybe-in-bracelist (&optional containing-sexp lim)
616+
(defun php-c-looking-at-or-maybe-in-bracelist (&optional _containing-sexp lim)
617617
"Replace `c-looking-at-or-maybe-in-bracelist'.
618618
619619
CONTAINING-SEXP is the position of the brace/paren/bracket enclosing
@@ -964,7 +964,7 @@ this ^ lineup"
964964

965965
(defalias 'php-syntax-propertize-function (php-build-propertize-function)))
966966

967-
(defun php--syntax-propertize-heredoc (start id is-heredoc)
967+
(defun php--syntax-propertize-heredoc (start id _is-heredoc)
968968
"Apply propertize Heredoc and Nowdoc from START, with ID and IS-HEREDOC."
969969
(let ((terminator (rx-to-string `(: line-start (* (syntax whitespace)) ,id word-boundary))))
970970
(put-text-property start (1+ start) 'syntax-table (string-to-syntax "|"))
@@ -1075,7 +1075,7 @@ After setting the stylevars run hooks according to STYLENAME
10751075
((equal stylename "symfony2") (run-hooks 'php-mode-symfony2-hook))
10761076
((equal stylename "psr2") (run-hooks 'php-mode-psr2-hook))))
10771077

1078-
(defun php-mode--disable-delay-set-style (&rest args)
1078+
(defun php-mode--disable-delay-set-style (&rest _args)
10791079
"Disable php-mode-set-style-delay on after hook. `ARGS' be ignore."
10801080
(setq php-mode--delayed-set-style nil)
10811081
(advice-remove #'php-mode--disable-delay-set-style #'c-set-style))

0 commit comments

Comments
 (0)