[Top][All Lists]

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

Re: dotimes var comiler warning

From: Joost Kremers
Subject: Re: dotimes var comiler warning
Date: Thu, 24 Nov 2016 13:53:29 +0100
User-agent: mu4e 0.9.17; emacs

On Thu, Nov 24 2016, Andreas Röhler wrote:
when employing a form

(dotimes (i erg)

Compiler sends a warning "Unused lexical variable ‘i’ - whilst seems no way to leave out such a var.

This seems to work:

   (dotimes (_ erg)

(info "(elisp) Using Lexical Binding") says:

| (To silence byte-compiler warnings about unused variables, just use a
| variable name that start with an underscore.  The byte-compiler
| interprets this as an indication that this is a variable known not to be
| used.)

(Very bottom of the page)


Joost Kremers
Life has its moments

reply via email to

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