bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33314: 27.0.50; wrong compiler warning


From: Andreas Röhler
Subject: bug#33314: 27.0.50; wrong compiler warning
Date: Thu, 8 Nov 2018 15:38:53 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Get a compiler Warning: Unused lexical variable ‘regexp’

WRT a form like below:

(defun foo (regexp &optional something)
  "..."
  (unless (bobp)
    (when (empty-line-p) (skip-chars-backward " \t\r\n\f"))
    (let* ((orig (point))
(regexpvalue (if (eq regexp 'py-clause-re) (symbol-value 'py-extended-block-or-clause-re) (symbol-value regexp)))
...

;;

As visible, regexp is evaluated in last clause.

Thanks,
Andreas
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-10-13





reply via email to

[Prev in Thread] Current Thread [Next in Thread]