unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matt Swift <swift@alum.mit.edu>
Subject: (setq byte-compile-warnings '(unresolved)) does not work
Date: Tue, 04 Mar 2003 04:00:20 -0500	[thread overview]
Message-ID: <m2znobwlp7.fsf@beth.swift.xxx> (raw)


Setting `byte-compile-warnings' to '(unresolved) results in no
compiler warnings about unresolved functions in 21.2 and this week's
CVS Emacs 21.3.  The reason is that the list
`byte-compile-unresolved-functions' is maintained properly only when
the 'callargs and 'redefine warnings are also selected.

The list is augmented only in `byte-compile-callargs-warn', which is
called only if the 'callargs warning is selected.

The list is trimmed only in `byte-compile-defalias-warn' and
`byte-compile-if', which are called only when compiling invocations of
`defalias' and `if', and `byte-compile-arglist-warn', which is called
only if the 'redefine warning is selected.

To demonstrate, save the following in its own file and \C-x\C-e
(`eval-last-sexp') with point at the end.  Uncomment `callargs' and
repeat.

;;;;;;;;;;;;;;;;;;;;;;

(or
 (and (fboundp 'zzzz) (progn (zzzz) (error "whoops")))
 (and
  (setq byte-compile-warnings '(
				unresolved
				;; callargs
				))
  (byte-compile-file (buffer-file-name))))

                 reply	other threads:[~2003-03-04  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2znobwlp7.fsf@beth.swift.xxx \
    --to=swift@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).