]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix byte-compilation warnings about 'sqlite-rollback'
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2023 07:30:53 +0000 (09:30 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2023 07:30:53 +0000 (09:30 +0200)
* lisp/sqlite.el (sqlite-transaction, sqlite-commit)
(sqlite-rollback): Declare.
* lisp/emacs-lisp/multisession.el (sqlite-commit)
(sqlite-transaction): Remove declaration.

lisp/emacs-lisp/multisession.el
lisp/sqlite.el

index b09777be407d86b29a82a9a585797e2c8b0f8022..4f95fc91dd81190206561724aa2171051872035a 100644 (file)
@@ -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)
 
index 8a525739c9a0ed7661d93d4af0a578d710c0a61a..22a0355d3cdf4d1cbbe581985096167acfdb9a58 100644 (file)
 
 ;;; 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