From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#33314: 27.0.50; wrong compiler warning Date: Fri, 9 Nov 2018 09:35:04 +0100 Message-ID: <42275e81-12d5-e38b-86f2-7c9ba2c62cfe@online.de> References: <20181108155459.99206.qmail@mail.muc.de> <87wopngimi.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1541752095 5159 195.159.176.226 (9 Nov 2018 08:28:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 08:28:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: Alan Mackenzie , 33314@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 09:28:10 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 1gL29C-0001Cg-5c for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 09:28:10 +0100 Original-Received: from localhost ([::1]:60878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL2BI-0005Vf-An for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 03:30:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL2B6-0005UW-9K for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2018 03:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL2B2-0007gw-2g for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2018 03:30:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gL2B1-0007fu-OC for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2018 03:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gL2B1-0001kz-Ai for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2018 03:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Nov 2018 08:30:03 +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: unreproducible moreinfo Original-Received: via spool by 33314-submit@debbugs.gnu.org id=B33314.15417521766697 (code B ref 33314); Fri, 09 Nov 2018 08:30:03 +0000 Original-Received: (at 33314) by debbugs.gnu.org; 9 Nov 2018 08:29:36 +0000 Original-Received: from localhost ([127.0.0.1]:42182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL2Aa-0001jx-6a for submit@debbugs.gnu.org; Fri, 09 Nov 2018 03:29:36 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.134]:51029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gL2AY-0001jj-Ka for 33314@debbugs.gnu.org; Fri, 09 Nov 2018 03:29:35 -0500 Original-Received: from [192.168.178.35] ([88.130.106.226]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mtxxk-1fVPWF0bsa-00uFwW; Fri, 09 Nov 2018 09:29:27 +0100 In-Reply-To: <87wopngimi.fsf@gmail.com> Content-Language: en-US X-Provags-ID: V03:K1:lwK0lIp77oIBndv4/oJKMemrCWEkR8frn5d1U6Wec+7oe4Ru8HI AOOjsPwq8derVmx/Qhl9qEm18965pY9YmnKjE7UkIW2l+YxqCSdTO5c1HLr4qtVgW3KXVYn gmN3RA7bAXX9bCM0bAMYyaHh/CGbzf9CLyiyAr4AwmZtjcvk2uK5CV2NXHTSnykeZqAwTgT Gk5q9M8j14DhFilAP3y2w== X-UI-Out-Filterresults: notjunk:1;V01:K0:ENbX75+3j2c=:Uks3kH9sdd/wCTYklYacWe /2e327XPuwlrAJGqhdfK2xniA5E27V2QfO/DY80eYIzOwOWKUpzK4U9BfLxDouafkp+RjCzFF 2LyqXZOOoQFFniCPXBQYxCLQAxBM4a36pz33wFsy47qajPsMemjgZkkp9OoDGoGsB5tqKadoq OFdxV916ijE1TJwgMGGiYV334igIhQ4uD8O41aeuX0cQ/pBdK1nEfOwF9EHXJEnN3lhZhYbf5 NxIG0N5TYEiq9qMCZK33DK0QPRtWPWn5T6rLiukpypEOfwiPahfQ6TfcflXzhDKQtQBGH5l0X fsAtVy7R7Q6XdJYKk8E9K4mWZ2p4kds44daOfJYWtCQ3TrUGdzDZAm7CUSlVSSSW/sUphb4F2 ApwihWs6KPenXnZusqF3xd3gO7NEngaRzUWBHi86/ZX692D8G4TJvI6kfdvxSmpyO+jejqQsO sEYqeXqQTraOHnWdTlyVeiH2Rexk/xIR6aYNxNNHiuHWo2WxSLo/fP5Flg0RyMc1nyxdyDbBR pdLYSYwONi9mu1chicPXv2Iu1DtGSkBVo2hZHB+NIt5OLIlHQZZ/+PumSUVDNmCIDOGdwdvoR CGOlBkSYMJEl742SRDCgnwTI8mT8vFlC63oUh8QLnjTkD+7DvtUpXi9Xq+3YOKCfXfNFeTwTF OnKrViwOGHKYRUnMP1UAIfZw5C/VfSh/QIT7VpNLg7HfJpLz1nEMTTd+J/bCXNhddAbrrlQ1a RPYfG8wWM4oqgnKs6w/1joajKFhBTCy1uSDoLlpkUwjq5eqVIgnbxnanaS7EsvcrCPUz886V 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:152198 Archived-At: On 09.11.2018 02:11, Noam Postavsky wrote: > tags 33314 unreproducible moreinfo > quit > > Andreas Röhler 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 ‘regexpvalue’ > bug-33314-bcomp-warning.el:3:1:Warning: Unused lexical variable ‘orig’ > bug-33314-bcomp-warning.el:3:1:Warning: Unused lexical argument ‘something’ > > In end of data: > bug-33314-bcomp-warning.el:13:1:Warning: the function ‘empty-line-p’ is not > known to be defined. > > `regexp' is not mentioned, but the other unused variables are, as > expected. > Hmm, sorry, can't reproduce it any more. As this happens from time to time, should send a complete report indeed. Tried to replay for now, but couldn't find a saved state. Thanks for your care, Andreas