branch: elpa/pdf-tools
commit 2992aea5714688043391bd90121810cff67aaf7d
Author: Vedang Manerikar <[email protected]>
Commit: Vedang Manerikar <[email protected]>

    fix(pdf-info): add declare-function for native-comp warnings
    
    Add declare-function statements for pdf-util-frame-scale-factor,
    pdf-util-hexcolor, pdf-util-munch-file, pdf-util-highlight-regexp-in-string,
    and pdf-view-buffer-file-name to silence native compilation warnings.
    
    Ref #333
---
 lisp/pdf-info.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lisp/pdf-info.el b/lisp/pdf-info.el
index 47d308d7b77..78853e027d8 100644
--- a/lisp/pdf-info.el
+++ b/lisp/pdf-info.el
@@ -51,6 +51,13 @@
 (require 'tq)
 (require 'cl-lib)
 
+;; Silence native-comp warnings about functions defined elsewhere
+(declare-function pdf-util-frame-scale-factor "pdf-util")
+(declare-function pdf-util-hexcolor "pdf-util")
+(declare-function pdf-util-munch-file "pdf-util")
+(declare-function pdf-util-highlight-regexp-in-string "pdf-util")
+(declare-function pdf-view-buffer-file-name "pdf-view")
+
 
 
 ;; * ================================================================== *

Reply via email to