emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/calibre 41263e2820 08/11: Fix byte compiler warnings


From: ELPA Syncer
Subject: [elpa] externals/calibre 41263e2820 08/11: Fix byte compiler warnings
Date: Sat, 20 May 2023 19:57:32 -0400 (EDT)

branch: externals/calibre
commit 41263e282023977eaf8f8c1787a47b4bd954ba57
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>

    Fix byte compiler warnings
    
    * calibre-cli.el:
    Require compat.
    Declare json-parse-buffer
    * calibre-db.el:
    Declare functions sqlite-open and sqlite-select.
    * calibre-edit.el:
    Require compat.
---
 calibre-cli.el  | 3 +++
 calibre-db.el   | 3 +++
 calibre-edit.el | 1 +
 3 files changed, 7 insertions(+)

diff --git a/calibre-cli.el b/calibre-cli.el
index 2b84f54bec..1b8e29bd76 100644
--- a/calibre-cli.el
+++ b/calibre-cli.el
@@ -24,10 +24,13 @@
 ;; SQLite support is not available.
 
 ;;; Code:
+(require 'compat) ; for string-split
 (require 'calibre)
 (require 'calibre-book)
 (require 'calibre-util)
 
+(declare-function json-parse-buffer (&rest args) "json.c")
+
 (defun calibre-cli--list (&rest fields)
   "List books in the active library.
 If FIELDS is a list of metadata fields to list, if none are
diff --git a/calibre-db.el b/calibre-db.el
index 19de3439e9..6c1e732f8b 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -28,6 +28,9 @@
 (require 'calibre-book)
 (require 'calibre-util)
 
+(declare-function sqlite-open (&optional file) "sqlite.c")
+(declare-function sqlite-select (db query &optional values return-type))
+
 (defun calibre-db--parse-timestamp (timestamp)
   "Return a Lisp timestamp from TIMESTAMP.
 TIMESTAMP is a string of the form YYYY-MM-DD HH:MM:SS.xxxxxx+00:00."
diff --git a/calibre-edit.el b/calibre-edit.el
index 720be1c273..fdd1843ed7 100644
--- a/calibre-edit.el
+++ b/calibre-edit.el
@@ -18,6 +18,7 @@
 ;; along with calibre.el.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;; Code:
+(require 'compat) ; for defvar-keymap
 (require 'wid-edit)
 (require 'calibre-widgets)
 (require 'calibre-core)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]