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).
requirefor that package to avoid compilation warnings for them. For instance,
(eval-when-compile (require 'foo))
with-no-warnings. See Compiler Errors.