From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#33314: 27.0.50; wrong compiler warning Date: Thu, 08 Nov 2018 20:11:17 -0500 Message-ID: <87wopngimi.fsf@gmail.com> References: <20181108155459.99206.qmail@mail.muc.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541725820 6359 195.159.176.226 (9 Nov 2018 01:10:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 01:10:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Alan Mackenzie , 33314@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 02:10:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKvJP-0001Vg-4h for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 02:10:15 +0100 Original-Received: from localhost ([::1]:59727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKvLV-0007Pn-FG for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Nov 2018 20:12:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKvLG-0007Kr-Vx for bug-gnu-emacs@gnu.org; Thu, 08 Nov 2018 20:12:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKvL9-0003LK-Hf for bug-gnu-emacs@gnu.org; Thu, 08 Nov 2018 20:12:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKvL8-0003Kc-AJ for bug-gnu-emacs@gnu.org; Thu, 08 Nov 2018 20:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gKvL7-0001aw-PP for bug-gnu-emacs@gnu.org; Thu, 08 Nov 2018 20:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Nov 2018 01:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33314 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33314-submit@debbugs.gnu.org id=B33314.15417258886088 (code B ref 33314); Fri, 09 Nov 2018 01:12:01 +0000 Original-Received: (at 33314) by debbugs.gnu.org; 9 Nov 2018 01:11:28 +0000 Original-Received: from localhost ([127.0.0.1]:42055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKvKa-0001a3-FK for submit@debbugs.gnu.org; Thu, 08 Nov 2018 20:11:28 -0500 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:44399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKvKX-0001Zh-0r; Thu, 08 Nov 2018 20:11:26 -0500 Original-Received: by mail-io1-f41.google.com with SMTP id c6-v6so140503iob.11; Thu, 08 Nov 2018 17:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=yfJ760mTHmGnfJfpGDCRu4rZBm7hg0h8nyVH99JywlQ=; b=hyY/+vdesr1h4bq661JEUdIDARQ6cjmyr75dF3V1D8tvQQ/Si7NJC+JWIECR3WikoY 8zAmN/ifWQuQmwKXJW8yt4yyFOQSepbUDyMWecrWfGg1RvAyPqunQYA7DKIVnG+/QbqP qAhJGxSW99o9w9OPO3ZfYKGAn6G7GpYZczKSN/QCu7qXdKFPxW7JwM3vZhFiMBf68lI/ 9ZpWQamPPQd0NGDyxEFZ+PdiGCpkT0U/L2u9KTBR8wmVpX/rzhEFDrsZETz+HOSmdLmk 9L/uyMqPGO4cP2VCgB6pOSvJcu5DKRYKKwCr8jGoavdjOPVtddjSNNgw+cjrNLY28fWk 9+kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=yfJ760mTHmGnfJfpGDCRu4rZBm7hg0h8nyVH99JywlQ=; b=jVhdk1utHOnV6RVxfpDpZVCEEEgrByTonkEh9wvi4qKLkHBJ5SbZaz8qqNZWaELWUK EyP6xtvIbFo2CUwiafxp8v7wBlPaarlpsF5EmZgJrWkJLYOruq0RXebqIMN8orx3A+rm Qb1rslsrvrI+a45L5IaxyJBcVqGlPdR/1QKyU3CUhPEZz/y4uA86sENj1uPG9/xdTFfh dVfZ6Col104xQ598IGxPC0jiRsnkOSRu4tPLScga1P7vwWsuy7YLagwMRo8kpPZKa0Yq +kLI0FICUobfAht7jj+LY32dcAcvQeVV3jUqQJYJRn2R3tUjzBOgwfHVgAOY45ErlDjd PmBg== X-Gm-Message-State: AGRZ1gLLt/WeWsw6PdcGyj7KrL7OWF3ukdZpzM9s1WEY6IQIbeSkCUtf mjkhE2MVFJzzE03Dkkp3sFJGA5TS X-Google-Smtp-Source: AJdET5evUu6a++dYCR7zGjJw2FlDjxpUYa7rTAZ9RZ7YtXY5UADv6FVMTiq/GCyDx28YY8kaW3qA6g== X-Received: by 2002:a6b:4014:: with SMTP id k20-v6mr5275054ioa.277.1541725879347; Thu, 08 Nov 2018 17:11:19 -0800 (PST) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e78-v6sm204247itc.4.2018.11.08.17.11.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 17:11:18 -0800 (PST) In-Reply-To: ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 8 Nov 2018 17:41:07 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152190 Archived-At: tags 33314 unreproducible moreinfo quit Andreas R=C3=B6hler writes: > So regexpvalue is used too. May send the complete function if interested. Please do, I can't reproduce the warning you claimed in your original report (and frankly, I think you've been doing this long enough that you should know by now that such an abbreviated report is not very helpful). Trying to fill in your example like this: ;;; -*- lexical-binding: t -*- (defun foo (regexp &optional something) "..." (unless (bobp) (when (empty-line-p) (skip-chars-backward " \t\r\n\f")) (let* ((orig (point)) (regexpvalue (if (eq regexp 'py-clause-re) (symbol-value 'py-extended-block-or-clause-re) (symbol-value regexp)))) t))) gives bug-33314-bcomp-warning.el:3:1:Warning: Unused lexical variable =E2=80= =98regexpvalue=E2=80=99 bug-33314-bcomp-warning.el:3:1:Warning: Unused lexical variable =E2=80= =98orig=E2=80=99 bug-33314-bcomp-warning.el:3:1:Warning: Unused lexical argument =E2=80= =98something=E2=80=99 In end of data: bug-33314-bcomp-warning.el:13:1:Warning: the function =E2=80=98empty-li= ne-p=E2=80=99 is not known to be defined. `regexp' is not mentioned, but the other unused variables are, as expected.