From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: false warnings when compiling with lexical-binding and cl-lib. Date: Fri, 22 Nov 2013 06:33:09 +0100 Organization: Emacs Helm Message-ID: <8761rl9f1m.fsf@gmail.com> References: <8761rl6ael.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385098408 25788 80.91.229.3 (22 Nov 2013 05:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 05:33:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 22 06:33:33 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjjMy-0001NU-Kb for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 06:33:32 +0100 Original-Received: from localhost ([::1]:36775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjjMy-0006fA-3T for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 00:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjjMq-0006f2-93 for emacs-devel@gnu.org; Fri, 22 Nov 2013 00:33:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjjMj-0006fA-S4 for emacs-devel@gnu.org; Fri, 22 Nov 2013 00:33:24 -0500 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:33822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjjMj-0006ez-LT for emacs-devel@gnu.org; Fri, 22 Nov 2013 00:33:17 -0500 Original-Received: by mail-wg0-f44.google.com with SMTP id k14so677164wgh.35 for ; Thu, 21 Nov 2013 21:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=KD7PIfheZ2seA874RrZws1wGzmIIlIuNfb5ksmZEnOA=; b=GvXwaV6SvZeIn9wPYuMmIsWmpf5qQa2HSisK8uXIwoAL8/VEtLrcBgTr5O3a3SqZeX quQM4RezMxZLFi4wN2YVAGLGrQf4lZ3WZcLcLG3GF62CBj5NZt2NNXqKjARFj3YzbVql 0sJT2rH9Ryvg5HN2+CbGQbBjkg+9Eql+iUgL7RzNVPBuBxFmHwvPuyp74UNA6RCCjwN+ n1DYG9ln0a82JwBcXDF1CgPg7nrymQY6iAw59P4uKZHfUFjYdIObY1VhaJLP/RnXsRNW iB0+ILjwIJfNKSF/T6L7XRS0NdEbw1H0FjyiYwYiC+tbL2M1oVZOcEq3WntkK/I4TOIv OJYA== X-Received: by 10.180.80.163 with SMTP id s3mr935788wix.51.1385098396237; Thu, 21 Nov 2013 21:33:16 -0800 (PST) Original-Received: from dell-14z ([37.162.130.16]) by mx.google.com with ESMTPSA id r4sm12121332wib.6.2013.11.21.21.33.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 21 Nov 2013 21:33:15 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Thu, 21 Nov 2013 20:19:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165530 Archived-At: Stefan Monnier writes: >> here a sample file containing a function using loop: > >> --8<---------------cut here---------------start------------->8--- >> ;;; test.el --- test loop -*- lexical-binding: t -*- > >> (require 'cl-lib) > >> (defun test-with (l) >> (cl-loop with lst >> for i in l >> unless (member i lst) >> collect i into lst >> finally return lst)) >> --8<---------------cut here---------------end--------------->8--- > >> When compiling this file I have a warning about unused arg `lst'. >> Is this wanted ? > > No, it's not wanted. But noone so far as been able to come up with > a patch to fix it (the code to fix is the cl-loop macro: look at the > macro-expanded code to see the unused `lst'). Ok thanks. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997