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

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

[debbugs-tracker] bug#16206: closed (24.3; Incorrect unused variable byt


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16206: closed (24.3; Incorrect unused variable byte-compiler warning in dotimes)
Date: Sat, 28 Apr 2018 20:22:02 +0000

Your message dated Sat, 28 Apr 2018 23:21:05 +0300
with message-id <address@hidden>
and subject line Re: bug#16206: 24.3; Incorrect unused variable byte-compiler 
warning in dotimes
has caused the debbugs.gnu.org bug report #16206,
regarding 24.3; Incorrect unused variable byte-compiler warning in dotimes
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16206: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16206
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3; Incorrect unused variable byte-compiler warning in dotimes Date: Fri, 20 Dec 2013 16:06:38 -0500 User-agent: Notmuch/0.16+156~gdb5189a (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu)
When `lexical-binding' is t the byte-compiler issues an invalid warning
for `dotimes' when the optional "result" form is used. For example,
byte-compile a file with these contents.

    ;;; -*- lexical-binding: t; -*-
    (defun foo ()
      (dotimes (i 1 t) i))

Or evaluate this form.

    (let ((lexical-binding t))
      (byte-compile (lambda () (dotimes (i 1 t) i))))

Output:

    Warning: Unused lexical variable `i'

If the t is removed the warning goes away.



--- End Message ---
--- Begin Message --- Subject: Re: bug#16206: 24.3; Incorrect unused variable byte-compiler warning in dotimes Date: Sat, 28 Apr 2018 23:21:05 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
Version: 27.0.50

>> But without that addition the sentence makes no sense when
>> the documentation describes the RESULT argument and then
>> at the end says that "RESULT should not be used".
>
> "Its use is deprecated".

Done in f4eeb0f.


--- End Message ---

reply via email to

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