sqlite: Fix build with DEBUG_LEVEL < 2

This commit is contained in:
Tobias Brunner 2023-04-18 16:46:02 +02:00
parent a9a2c040ba
commit b158c210cd

View File

@ -62,7 +62,9 @@ METHOD(plugin_t, destroy, void,
plugin_t *sqlite_plugin_create()
{
private_sqlite_plugin_t *this;
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
int threadsafe = 0;
#endif
INIT(this,
.public = {
@ -74,7 +76,7 @@ plugin_t *sqlite_plugin_create()
},
);
#if SQLITE_VERSION_NUMBER >= 3005000
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
threadsafe = sqlite3_threadsafe();
#endif
DBG2(DBG_LIB, "using SQLite %s, thread safety %d",