From b5cea4c27e8b707c50cc53d7316cb52ba1fdb2ef Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 8 Apr 2021 22:33:43 +0200 Subject: [PATCH] Make enabling FTS3 non-fatal --- src/core/database.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index 5345af4a8..9c32f2ecf 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -160,8 +160,7 @@ QSqlDatabase Database::Connect() { if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) { sqlite3 *handle = *static_cast(v.data()); if (handle) { - int result = sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, nullptr); - if (result != SQLITE_OK) qLog(Fatal) << "Unable to enable FTS3 tokenizer"; + (void)sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, nullptr); } else qLog(Fatal) << "Unable to enable FTS3 tokenizer"; }