unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33314: 27.0.50; wrong compiler warning
@ 2018-11-08 14:38 Andreas Röhler
       [not found] ` <mailman.3649.1541688141.1284.bug-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Röhler @ 2018-11-08 14:38 UTC (permalink / raw)
  To: 33314

Get a compiler Warning: Unused lexical variable ‘regexp’

WRT a form like below:

(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)))
...

;;

As visible, regexp is evaluated in last clause.

Thanks,
Andreas
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 
2018-10-13





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-09  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-08 14:38 bug#33314: 27.0.50; wrong compiler warning Andreas Röhler
     [not found] ` <mailman.3649.1541688141.1284.bug-gnu-emacs@gnu.org>
2018-11-08 15:54   ` Alan Mackenzie
2018-11-08 16:41     ` Andreas Röhler
2018-11-09  1:11       ` Noam Postavsky
2018-11-09  8:35         ` Andreas Röhler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).