all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compiler warning
@ 2018-07-18 11:38 Andreas Röhler
  2018-07-18 11:48 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2018-07-18 11:38 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-18 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 11:38 Compiler warning Andreas Röhler
2018-07-18 11:48 ` Noam Postavsky
2018-07-18 12:05   ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.