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"; }