unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6740: Spurious byte compiler warnings
@ 2010-07-27 20:06 Alan Mackenzie
  2010-07-27 20:26 ` Dan Nicolaescu
  0 siblings, 1 reply; 14+ messages in thread
From: Alan Mackenzie @ 2010-07-27 20:06 UTC (permalink / raw)
  To: 6740

Hi, Emacs!

(i) Start Emacs, even a most recent bzr version, with -Q.
(ii) Put the following into the *scratch* buffer:

    (eval-when-compile
      (if (and (not (featurep 'cc-fix))
               (featurep 'xemacs)
               (progn
                 (require 'font-lock)
                 (let (font-lock-keywords)
                   (font-lock-compile-keywords '("\\<\\>"))
                   font-lock-keywords)))
          (cc-load "cc-fix")))

  (This fragment is at the top level, and taken from cc-defs.el.).
(iii) do M-x compile-defun on this form.

The byte compiler then issues the following two identical error
messages:

    Warning: value returned from (featurep (quote cc-fix)) is unused
    Warning: value returned from (featurep (quote cc-fix)) is unused

It is obvious that that value is indeed used.  This is a bug.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

end of thread, other threads:[~2020-11-24  6:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-27 20:06 bug#6740: Spurious byte compiler warnings Alan Mackenzie
2010-07-27 20:26 ` Dan Nicolaescu
2010-07-27 21:23   ` Alan Mackenzie
2010-07-27 22:57     ` Juanma Barranquero
2010-07-28 17:49       ` Alan Mackenzie
2010-07-28 17:56         ` Juanma Barranquero
2010-07-28 19:45           ` Alan Mackenzie
2010-07-28 19:54             ` Juanma Barranquero
2010-07-28 23:00               ` Dan Nicolaescu
2010-07-29 20:24               ` Alan Mackenzie
2010-07-29 20:36                 ` Juanma Barranquero
2010-07-27 21:40   ` Stefan Monnier
2020-11-19  4:25     ` Stefan Kangas
2020-11-24  6:40       ` Lars Ingebrigtsen

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