[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25017: Fwd: Re: dotimes var comiler warning
From: |
npostavs |
Subject: |
bug#25017: Fwd: Re: dotimes var comiler warning |
Date: |
Thu, 24 Nov 2016 09:23:27 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
severity 25017 wishlist
quit
>
> Subject: Re: dotimes var comiler warning
> Date: Thu, 24 Nov 2016 14:32:44 +0100
> From: Michael Heerdegen <michael_heerdegen@web.de>
> To: Andreas Röhler <andreas.roehler@easy-emacs.de>
> CC: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
>
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> when employing a form
>>
>> (dotimes (i erg)
>>
>> ...do-something
>>
>>
>> Compiler sends a warning "Unused lexical variable ‘i’ - whilst seems
>> no way to leave out such a var.
So you want to do:
(dotimes (erg)
...)
Or perhaps even
(dotimes erg
...)
>>
>> Worth a bug-report?
>
> If none exists yet, I'm for it. FWIW, there is a FIXME comment in the
> source code already.
The FIXME comment is unrelated to this, as far as I can tell (it's
talking about binding the variable around the optional RESULT
expression).
>
> Yes, you can probably use `_' to suppress the warning, but I always
> wondered why something called like this requires a variable to be
> specified (mandatorily) at all.
Because it's a bit nonstandard to make the *first* arg &optional?
- bug#25017: Fwd: Re: dotimes var comiler warning, Andreas Röhler, 2016/11/24
- bug#25017: Fwd: Re: dotimes var comiler warning,
npostavs <=
- bug#25017: Fwd: Re: dotimes var comiler warning, Michael Albinus, 2016/11/24
- bug#25017: Fwd: Re: dotimes var comiler warning, Michael Heerdegen, 2016/11/24
- bug#25017: Fwd: Re: dotimes var comiler warning, Michael Heerdegen, 2016/11/24
- bug#25017: Fwd: Re: dotimes var comiler warning, Drew Adams, 2016/11/25
- bug#25017: Fwd: Re: dotimes var comiler warning, Michael Heerdegen, 2016/11/27
- bug#25017: Fwd: Re: dotimes var comiler warning, Drew Adams, 2016/11/27
- bug#25017: Fwd: Re: dotimes var comiler warning, Philipp Stephani, 2016/11/27
- bug#25017: Fwd: Re: dotimes var comiler warning, Michael Heerdegen, 2016/11/28
- bug#25017: Fwd: Re: dotimes var comiler warning, Drew Adams, 2016/11/28