From: Drew Adams <drew.adams@oracle.com>
To: Jean Louis <bugs@gnu.support>, help-gnu-emacs@gnu.org
Subject: RE: How to avoid warning, with undefined functions in a package
Date: Mon, 19 Oct 2020 08:16:38 -0700 (PDT) [thread overview]
Message-ID: <d7e9de6b-7782-4479-8966-ece20fda4596@default> (raw)
In-Reply-To: <courier.000000005F8D2AF5.00001EFE@static.rcdrun.com>
> Those are undefined functions and variables, but I would not like
> defining them, or requiring them, unless user has that other package.
>
> What would be good approach to solve that, and that there are no
> compiler warnings?
>
> In rcd-speak-festival:
> rcd-utilities.el:121:23: Warning: reference to free variable
> ‘festival-program-name’
For the undefined variable warnings: If you are convinced that your code does the right thing, so those warnings are spurious, add an empty `defvar' for each such variable warning. E.g., for variable foo, add this:
;; No initial value. Just tells the byte compiler
;; that this is a special variable.
;;
(defvar foo)
next prev parent reply other threads:[~2020-10-19 15:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-19 5:58 How to avoid warning, with undefined functions in a package Jean Louis
2020-10-19 8:34 ` Daniel Martín
2020-10-19 15:16 ` Drew Adams [this message]
2020-10-19 17:57 ` Jean Louis
2020-10-19 18:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d7e9de6b-7782-4479-8966-ece20fda4596@default \
--to=drew.adams@oracle.com \
--cc=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.