From: Eli Zaretskii Date: Fri, 24 Nov 2023 07:30:53 +0000 (+0200) Subject: Fix byte-compilation warnings about 'sqlite-rollback' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e6ad97a3338c22224eb0da3f0d3226be255298a7;p=emacs.git Fix byte-compilation warnings about 'sqlite-rollback' * lisp/sqlite.el (sqlite-transaction, sqlite-commit) (sqlite-rollback): Declare. * lisp/emacs-lisp/multisession.el (sqlite-commit) (sqlite-transaction): Remove declaration. --- diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el index b09777be407..4f95fc91dd8 100644 --- a/lisp/emacs-lisp/multisession.el +++ b/lisp/emacs-lisp/multisession.el @@ -137,8 +137,6 @@ DOC should be a doc string, and ARGS are keywords as applicable to (declare-function sqlite-select "sqlite.c") (declare-function sqlite-open "sqlite.c") (declare-function sqlite-pragma "sqlite.c") -(declare-function sqlite-transaction "sqlite.c") -(declare-function sqlite-commit "sqlite.c") (defvar multisession--db nil) diff --git a/lisp/sqlite.el b/lisp/sqlite.el index 8a525739c9a..22a0355d3cd 100644 --- a/lisp/sqlite.el +++ b/lisp/sqlite.el @@ -23,6 +23,10 @@ ;;; Code: +(declare-function sqlite-transaction "sqlite.c") +(declare-function sqlite-commit "sqlite.c") +(declare-function sqlite-rollback "sqlite.c") + (defmacro with-sqlite-transaction (db &rest body) "Execute BODY while holding a transaction for DB. If BODY completes normally, commit the changes and return