[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiler warning
From: |
Andreas Röhler |
Subject: |
Compiler warning |
Date: |
Wed, 18 Jul 2018 13:38:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hi,
get a strange
Warning: Unused lexical variable ‘i’
refering to this:
(defun py-forward-block (&optional arg decorator bol)
"[...]"
(interactive "p")
(let (erg)
(dotimes (i (or arg 1))
(let ((orig (point)))
(setq erg (py--end-base 'py-block-re orig decorator bol))))
(when (and py-verbose-p (called-interactively-p 'any)) (message
"%s" erg))
erg))
While code below compiles without warning:
(defun foo (&optional arg)
(interactive "p")
(dotimes (i (or arg 1))
(insert "Me again\n")))
Any idea?
Thanks,
Andreas
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of
2018-05-29
- Compiler warning,
Andreas Röhler <=