(minor)chore: fix minor warnings by native compiler (#1959)

* Fix warnings reported by emacs (--with-native-compiler)
* Drive-by fix for org-roam-database-connector's :group
This commit is contained in:
Philippe Crama
2021-11-11 13:00:07 +01:00
committed by GitHub
parent 721f167563
commit b96efbb444
6 changed files with 23 additions and 9 deletions

View File

@ -48,7 +48,7 @@ tool, which is not recommended because it is not suitable to be
used like this, but has the advantage that you likely don't need
a compiler. See https://nullprogram.com/blog/2014/02/06/."
:package-version '(org-roam . "2.2.0")
:group 'forge
:group 'org-roam
:type '(choice (const sqlite)
(const libsqlite3)
(const sqlite3)
@ -116,6 +116,10 @@ slow."
(gethash (expand-file-name (file-name-as-directory org-roam-directory))
org-roam-db--connection))
(declare-function emacsql-sqlite "ext:emacsql-sqlite")
(declare-function emacsql-libsqlite3 "ext:emacsql-libsqlite3")
(declare-function emacsql-sqlite3 "ext:emacsql-sqlite3")
(defun org-roam-db--conn-fn ()
"Return the function for creating the database connection."
(cl-case org-roam-database-connector