defvardefinitions for these variables, like this:
Such a definition has no effect except to tell the compiler
not to warn about uses of the variable
foo in this file.
declare-functionstatement (see Declaring Functions).
require(see require) for that package to avoid compilation warnings for them, like this:
If you need only macros from some file, you can require it only at compile time (see Eval During Compile). For instance,
(eval-when-compile (require 'foo))
with-no-warnings. See Compiler Errors.